Bug #69383 PREPARE from a 800 KB string causes ER_PARSE_ERROR "memory exhausted"
| Submitted: | 2 Jun 2013 20:57 | Modified: | 3 Jun 2013 9:11 |
|---|---|---|---|
| Reporter: | Elena Stepanova | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Prepared statements | Severity: | S3 (Non-critical) |
| Version: | 5.1, 5.5, 5.6, 5.7 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[2 Jun 2013 20:57]
Elena Stepanova
[3 Jun 2013 9:11]
MySQL Verification Team
Hello Elena, Thank you for the report. Verified as described. Thanks, Umesh
[3 Jun 2013 15:23]
Shane Bester
Simpler testcase:
-----------
drop table if exists t1;
create table t1(a int,key(a))engine=myisam;
set @sql=concat(repeat("select count(a) from t1 union all ",10000),"select count(a) from t1");
select length(@sql);
prepare s from @sql;
-----------
[28 Mar 2017 0:30]
Yichen Jia
I have a similar bug that the string length is just 235K in mysql version 6.16
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.060 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.