From 6168e0b601cd3ac39ecdb90188b5ac919f590af7 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 23 Sep 2009 10:05:06 +0000 Subject: [PATCH] Missing escaping (bug #2864585) git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1132 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/include/export.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/export.inc.php b/adminer/include/export.inc.php index 3d6e2672..f15ffb34 100644 --- a/adminer/include/export.inc.php +++ b/adminer/include/export.inc.php @@ -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 }