mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
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.
This commit is contained in:
@@ -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 ;
|
||||
|
||||
Reference in New Issue
Block a user