mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Added a test for a problem that was fixed by automerge and fixed a typo.
This commit is contained in:
parent
6810ca1b71
commit
dee8f22c07
2 changed files with 25 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue