| 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]
MySQL Verification Team
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
