summaryrefslogtreecommitdiff
path: root/mysql-test/include/ps_modify.inc
diff options
context:
space:
mode:
authorkonstantin@mysql.com <>2005-06-07 14:11:36 +0400
committerkonstantin@mysql.com <>2005-06-07 14:11:36 +0400
commit9f379d7f05c43b2d09de91c3af5cc35613a745e4 (patch)
treed2686d80a3486e1912b96a6e6774bd3f77da0022 /mysql-test/include/ps_modify.inc
parent7288ef873f3168bf54d84967223e469dcf68fdf3 (diff)
downloadmariadb-git-9f379d7f05c43b2d09de91c3af5cc35613a745e4.tar.gz
Patch two (the final one) for Bug#7306 "the server side preparedStatement
error for LIMIT placeholder". The patch adds grammar support for LIMIT ?, ? and changes the type of ST_SELECT_LEX::select_limit,offset_limit from ha_rows to Item*, so that it can point to Item_param.
Diffstat (limited to 'mysql-test/include/ps_modify.inc')
-rw-r--r--mysql-test/include/ps_modify.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/mysql-test/include/ps_modify.inc b/mysql-test/include/ps_modify.inc
index 04b9734240b..633c317f4b2 100644
--- a/mysql-test/include/ps_modify.inc
+++ b/mysql-test/include/ps_modify.inc
@@ -174,11 +174,8 @@ where a=2
limit 1';
execute stmt1 ;
select a,b from t1 where b = 'bla' ;
-# currently (May 2004, Version 4.1) it is impossible
--- error 1064
-prepare stmt1 from 'update t1 set b=''bla''
-where a=2
-limit ?';
+prepare stmt1 from 'update t1 set b=''bla'' where a=2 limit ?';
+execute stmt1 using @arg00;
--disable_query_log
select '------ insert tests ------' as test_sequence ;