mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 00:28:34 +02:00
Missing escaping (bug #2864585)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1132 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -85,7 +85,7 @@ CREATE PROCEDURE adminer_alter (INOUT alter_command text) BEGIN
|
||||
dump("
|
||||
WHEN " . $connection->quote($row["COLUMN_NAME"]) . " THEN
|
||||
SET add_columns = REPLACE(add_columns, ', ADD $row[alter]', '');
|
||||
IF NOT (_column_default <=> $row[default]) OR _is_nullable != '$row[IS_NULLABLE]' OR _collation_name != '$row[COLLATION_NAME]' OR _column_type != '$row[COLUMN_TYPE]' OR _extra != '$row[EXTRA]' OR _column_comment != " . $connection->quote($row["COLUMN_COMMENT"]) . " OR after != $row[after] THEN
|
||||
IF NOT (_column_default <=> $row[default]) OR _is_nullable != '$row[IS_NULLABLE]' OR _collation_name != '$row[COLLATION_NAME]' OR _column_type != " . $connection->quote($row["COLUMN_TYPE"]) . " OR _extra != '$row[EXTRA]' OR _column_comment != " . $connection->quote($row["COLUMN_COMMENT"]) . " OR after != $row[after] THEN
|
||||
SET @alter_table = CONCAT(@alter_table, ', MODIFY $row[alter]');
|
||||
END IF;"); //! don't replace in comment
|
||||
}
|
||||
|
Reference in New Issue
Block a user