Commit 9a31010f authored by unknown's avatar unknown

Followup: now we support few more SQL commands in prepared statements.

parent a5debaea
...@@ -381,9 +381,7 @@ ERROR HY000: This command is not supported in the prepared statement protocol ye ...@@ -381,9 +381,7 @@ ERROR HY000: This command is not supported in the prepared statement protocol ye
prepare stmt1 from ' handler t1 open '; prepare stmt1 from ' handler t1 open ';
ERROR HY000: This command is not supported in the prepared statement protocol yet ERROR HY000: This command is not supported in the prepared statement protocol yet
prepare stmt3 from ' commit ' ; prepare stmt3 from ' commit ' ;
ERROR HY000: This command is not supported in the prepared statement protocol yet
prepare stmt3 from ' rollback ' ; prepare stmt3 from ' rollback ' ;
ERROR HY000: This command is not supported in the prepared statement protocol yet
prepare stmt4 from ' SET sql_mode=ansi '; prepare stmt4 from ' SET sql_mode=ansi ';
execute stmt4; execute stmt4;
select 'a' || 'b' ; select 'a' || 'b' ;
...@@ -459,11 +457,8 @@ m ...@@ -459,11 +457,8 @@ m
1 1
drop table t3; drop table t3;
prepare stmt3 from ' create index t2_idx on t2(b) '; prepare stmt3 from ' create index t2_idx on t2(b) ';
ERROR HY000: This command is not supported in the prepared statement protocol yet
prepare stmt3 from ' drop index t2_idx on t2 ' ; prepare stmt3 from ' drop index t2_idx on t2 ' ;
ERROR HY000: This command is not supported in the prepared statement protocol yet
prepare stmt3 from ' alter table t2 drop primary key '; prepare stmt3 from ' alter table t2 drop primary key ';
ERROR HY000: This command is not supported in the prepared statement protocol yet
drop table if exists new_t2; drop table if exists new_t2;
prepare stmt3 from ' rename table t2 to new_t2 '; prepare stmt3 from ' rename table t2 to new_t2 ';
execute stmt3; execute stmt3;
......
...@@ -935,7 +935,6 @@ execute stmt1 using @arg00; ...@@ -935,7 +935,6 @@ execute stmt1 using @arg00;
select a,b from t1 where b=@arg00; select a,b from t1 where b=@arg00;
a b a b
prepare stmt1 from 'truncate table t1' ; prepare stmt1 from 'truncate table t1' ;
ERROR HY000: This command is not supported in the prepared statement protocol yet
test_sequence test_sequence
------ update tests ------ ------ update tests ------
delete from t1 ; delete from t1 ;
......
...@@ -935,7 +935,6 @@ execute stmt1 using @arg00; ...@@ -935,7 +935,6 @@ execute stmt1 using @arg00;
select a,b from t1 where b=@arg00; select a,b from t1 where b=@arg00;
a b a b
prepare stmt1 from 'truncate table t1' ; prepare stmt1 from 'truncate table t1' ;
ERROR HY000: This command is not supported in the prepared statement protocol yet
test_sequence test_sequence
------ update tests ------ ------ update tests ------
delete from t1 ; delete from t1 ;
......
...@@ -936,7 +936,6 @@ execute stmt1 using @arg00; ...@@ -936,7 +936,6 @@ execute stmt1 using @arg00;
select a,b from t1 where b=@arg00; select a,b from t1 where b=@arg00;
a b a b
prepare stmt1 from 'truncate table t1' ; prepare stmt1 from 'truncate table t1' ;
ERROR HY000: This command is not supported in the prepared statement protocol yet
test_sequence test_sequence
------ update tests ------ ------ update tests ------
delete from t1 ; delete from t1 ;
......
...@@ -978,7 +978,6 @@ execute stmt1 using @arg00; ...@@ -978,7 +978,6 @@ execute stmt1 using @arg00;
select a,b from t1 where b=@arg00; select a,b from t1 where b=@arg00;
a b a b
prepare stmt1 from 'truncate table t1' ; prepare stmt1 from 'truncate table t1' ;
ERROR HY000: This command is not supported in the prepared statement protocol yet
test_sequence test_sequence
------ update tests ------ ------ update tests ------
delete from t1 ; delete from t1 ;
...@@ -2171,7 +2170,6 @@ execute stmt1 using @arg00; ...@@ -2171,7 +2170,6 @@ execute stmt1 using @arg00;
select a,b from t1 where b=@arg00; select a,b from t1 where b=@arg00;
a b a b
prepare stmt1 from 'truncate table t1' ; prepare stmt1 from 'truncate table t1' ;
ERROR HY000: This command is not supported in the prepared statement protocol yet
test_sequence test_sequence
------ update tests ------ ------ update tests ------
delete from t1 ; delete from t1 ;
......
...@@ -935,7 +935,6 @@ execute stmt1 using @arg00; ...@@ -935,7 +935,6 @@ execute stmt1 using @arg00;
select a,b from t1 where b=@arg00; select a,b from t1 where b=@arg00;
a b a b
prepare stmt1 from 'truncate table t1' ; prepare stmt1 from 'truncate table t1' ;
ERROR HY000: This command is not supported in the prepared statement protocol yet
test_sequence test_sequence
------ update tests ------ ------ update tests ------
delete from t1 ; delete from 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