Commit 21cb6730 authored by unknown's avatar unknown

Added a test for a problem that was fixed by automerge and fixed a typo.

parent 29742ca1
......@@ -2,7 +2,7 @@ drop table if exists t1,t2;
create table t1
(
a int primary key,
b char(10),
b char(10)
);
insert into t1 values (1,'one');
insert into t1 values (2,'two');
......@@ -89,4 +89,13 @@ prepare stmt6 from 'insert into t1 values (5,"five"); select2';
ERROR 42000: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '; select2' at line 1
explain prepare stmt6 from 'insert into t1 values (5,"five"); select2';
ERROR 42000: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'from 'insert into t1 values (5,"five"); select2'' at line 1
drop table t1;
create table t2
(
a int
);
insert into t2 values (0);
set @arg00=NULL ;
prepare stmt1 from 'select 1 FROM t2 where a=?' ;
execute stmt1 using @arg00 ;
1
drop table t1,t2;
......@@ -8,7 +8,7 @@ drop table if exists t1,t2;
create table t1
(
a int primary key,
b char(10),
b char(10)
);
insert into t1 values (1,'one');
insert into t1 values (2,'two');
......@@ -86,5 +86,17 @@ prepare stmt6 from 'insert into t1 values (5,"five"); select2';
--error 1064
explain prepare stmt6 from 'insert into t1 values (5,"five"); select2';
drop table t1;
create table t2
(
a int
);
insert into t2 values (0);
# parameter is NULL
set @arg00=NULL ;
prepare stmt1 from 'select 1 FROM t2 where a=?' ;
execute stmt1 using @arg00 ;
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