mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Post-merge fixes.
This commit is contained in:
@ -778,3 +778,19 @@ lily
|
|||||||
river
|
river
|
||||||
drop table t1;
|
drop table t1;
|
||||||
deallocate prepare stmt;
|
deallocate prepare stmt;
|
||||||
|
create table t1 (a int);
|
||||||
|
prepare stmt from "select ??";
|
||||||
|
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 '?' at line 1
|
||||||
|
prepare stmt from "select ?FROM t1";
|
||||||
|
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 t1' at line 1
|
||||||
|
prepare stmt from "select FROM t1 WHERE?=1";
|
||||||
|
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 t1 WHERE?=1' at line 1
|
||||||
|
prepare stmt from "update t1 set a=a+?WHERE 1";
|
||||||
|
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 '?WHERE 1' at line 1
|
||||||
|
select ?;
|
||||||
|
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 '?' at line 1
|
||||||
|
select ??;
|
||||||
|
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 '??' at line 1
|
||||||
|
select ? from t1;
|
||||||
|
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 t1' at line 1
|
||||||
|
drop table t1;
|
||||||
|
@ -822,4 +822,3 @@ select ??;
|
|||||||
--error 1064
|
--error 1064
|
||||||
select ? from t1;
|
select ? from t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
deallocate prepare stmt;
|
|
||||||
|
@ -562,7 +562,7 @@ int yylex(void *arg, void *yythd)
|
|||||||
its value in a query for the binlog, the query must stay
|
its value in a query for the binlog, the query must stay
|
||||||
grammatically correct.
|
grammatically correct.
|
||||||
*/
|
*/
|
||||||
else if (c == '?' && ((THD*) yythd)->command == COM_PREPARE &&
|
else if (c == '?' && ((THD*) yythd)->command == COM_STMT_PREPARE &&
|
||||||
!ident_map[cs, yyPeek()])
|
!ident_map[cs, yyPeek()])
|
||||||
return(PARAM_MARKER);
|
return(PARAM_MARKER);
|
||||||
return((int) c);
|
return((int) c);
|
||||||
|
Reference in New Issue
Block a user