Commit 61e682b8 authored by unknown's avatar unknown

Portability fix (for example NetWare doesn't support table name like t"1").

parent abffab88
...@@ -43,15 +43,15 @@ INSERT INTO t1 VALUES (1, "test", "tes"), (2, "TEST", "TES"); ...@@ -43,15 +43,15 @@ INSERT INTO t1 VALUES (1, "test", "tes"), (2, "TEST", "TES");
</database> </database>
</mysqldump> </mysqldump>
DROP TABLE t1; DROP TABLE t1;
CREATE TABLE `"t"1` (`a"b"` char(2)); CREATE TABLE t1 (`a"b"` char(2));
INSERT INTO `"t"1` VALUES ("1\""), ("\"2"); INSERT INTO t1 VALUES ("1\""), ("\"2");
<?xml version="1.0"?> <?xml version="1.0"?>
<mysqldump> <mysqldump>
<database name="test"> <database name="test">
<table_structure name="&quot;t&quot;1"> <table_structure name="t1">
<field Field="a&quot;b&quot;" Type="char(2)" Null="YES" Key="" Extra="" /> <field Field="a&quot;b&quot;" Type="char(2)" Null="YES" Key="" Extra="" />
</table_structure> </table_structure>
<table_data name="&quot;t&quot;1"> <table_data name="t1">
<row> <row>
<field name="a&quot;b&quot;">1&quot;</field> <field name="a&quot;b&quot;">1&quot;</field>
</row> </row>
...@@ -61,4 +61,4 @@ INSERT INTO `"t"1` VALUES ("1\""), ("\"2"); ...@@ -61,4 +61,4 @@ INSERT INTO `"t"1` VALUES ("1\""), ("\"2");
</table_data> </table_data>
</database> </database>
</mysqldump> </mysqldump>
DROP TABLE `"t"1`; DROP TABLE t1;
...@@ -18,7 +18,7 @@ DROP TABLE t1; ...@@ -18,7 +18,7 @@ DROP TABLE t1;
# Bug #1707 # Bug #1707
# #
CREATE TABLE `"t"1` (`a"b"` char(2)); CREATE TABLE t1 (`a"b"` char(2));
INSERT INTO `"t"1` VALUES ("1\""), ("\"2"); INSERT INTO t1 VALUES ("1\""), ("\"2");
--exec $MYSQL_DUMP --skip-all -X test \"t\"1 --exec $MYSQL_DUMP --skip-all -X test t1
DROP TABLE `"t"1`; DROP TABLE t1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment