Commit b0099db5 authored by unknown's avatar unknown

innodb.result, innodb.test:

  Fix mysql-test failure in the 5.0 tree on Aug 23: label seems to be a reserved word in 5.0, and we to use it a s a column name we must but it inside backticks


mysql-test/t/innodb.test:
  Fix mysql-test failure in the 5.0 tree on Aug 23: label seems to be a reserved word in 5.0, and we to use it a s a column name we must but it inside backticks
mysql-test/r/innodb.result:
  Fix mysql-test failure in the 5.0 tree on Aug 23: label seems to be a reserved word in 5.0, and we to use it a s a column name we must but it inside backticks
parent fc985d60
...@@ -1376,7 +1376,7 @@ CREATE TABLE t1 ( ...@@ -1376,7 +1376,7 @@ CREATE TABLE t1 (
`id` int(10) unsigned NOT NULL auto_increment, `id` int(10) unsigned NOT NULL auto_increment,
`id_object` int(10) unsigned default '0', `id_object` int(10) unsigned default '0',
`id_version` int(10) unsigned NOT NULL default '1', `id_version` int(10) unsigned NOT NULL default '1',
label varchar(100) NOT NULL default '', `label` varchar(100) NOT NULL default '',
`description` text, `description` text,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `id_object` (`id_object`), KEY `id_object` (`id_object`),
...@@ -1390,8 +1390,8 @@ PRIMARY KEY (`id`), ...@@ -1390,8 +1390,8 @@ PRIMARY KEY (`id`),
KEY `id_version` (`id_version`) KEY `id_version` (`id_version`)
) ENGINE=InnoDB; ) ENGINE=InnoDB;
INSERT INTO t2 VALUES("3524", "1"),("3525", "1"),("1794", "4"),("102", "5"),("1822", "6"),("3382", "9"); INSERT INTO t2 VALUES("3524", "1"),("3525", "1"),("1794", "4"),("102", "5"),("1822", "6"),("3382", "9");
SELECT t2.id, t1.label FROM t2 INNER JOIN SELECT t2.id, t1.`label` FROM t2 INNER JOIN
(SELECT t1.id_object as id_object FROM t1 WHERE t1.label LIKE '%test%') AS lbl (SELECT t1.id_object as id_object FROM t1 WHERE t1.`label` LIKE '%test%') AS lbl
ON (t2.id = lbl.id_object) INNER JOIN t1 ON (t2.id = t1.id_object); ON (t2.id = lbl.id_object) INNER JOIN t1 ON (t2.id = t1.id_object);
id label id label
3382 Test 3382 Test
......
...@@ -998,7 +998,7 @@ CREATE TABLE t1 ( ...@@ -998,7 +998,7 @@ CREATE TABLE t1 (
`id` int(10) unsigned NOT NULL auto_increment, `id` int(10) unsigned NOT NULL auto_increment,
`id_object` int(10) unsigned default '0', `id_object` int(10) unsigned default '0',
`id_version` int(10) unsigned NOT NULL default '1', `id_version` int(10) unsigned NOT NULL default '1',
label varchar(100) NOT NULL default '', `label` varchar(100) NOT NULL default '',
`description` text, `description` text,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `id_object` (`id_object`), KEY `id_object` (`id_object`),
...@@ -1016,8 +1016,8 @@ CREATE TABLE t2 ( ...@@ -1016,8 +1016,8 @@ CREATE TABLE t2 (
INSERT INTO t2 VALUES("3524", "1"),("3525", "1"),("1794", "4"),("102", "5"),("1822", "6"),("3382", "9"); INSERT INTO t2 VALUES("3524", "1"),("3525", "1"),("1794", "4"),("102", "5"),("1822", "6"),("3382", "9");
SELECT t2.id, t1.label FROM t2 INNER JOIN SELECT t2.id, t1.`label` FROM t2 INNER JOIN
(SELECT t1.id_object as id_object FROM t1 WHERE t1.label LIKE '%test%') AS lbl (SELECT t1.id_object as id_object FROM t1 WHERE t1.`label` LIKE '%test%') AS lbl
ON (t2.id = lbl.id_object) INNER JOIN t1 ON (t2.id = t1.id_object); ON (t2.id = lbl.id_object) INNER JOIN t1 ON (t2.id = t1.id_object);
drop table t1,t2; drop table t1,t2;
......
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