Bug #18492 | mysqld reports ER_ILLEGAL_REFERENCE in --ps-protocol | ||
---|---|---|---|
Submitted: | 24 Mar 2006 15:53 | Modified: | 2 May 2006 22:35 |
Reporter: | Andrei Elkin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Prepared statements | Severity: | S3 (Non-critical) |
Version: | 5.1.8, 5.0.21, 4.1.19 | OS: | |
Assigned to: | Georgi Kodinov | CPU Architecture: | Any |
[24 Mar 2006 15:53]
Andrei Elkin
[24 Mar 2006 16:46]
Valeriy Kravchuk
Thank you for a problem report. Please, specify the exact version(s) that demonstrates this behaviour.
[24 Mar 2006 18:16]
Valeriy Kravchuk
Verified just as described on 5.1.8-BK (ChangeSet@1.2213.1.2, 2006-03-23 22:50:20+01:00): openxs@suse:~/dbs/5.1/mysql-test> ./mysql-test-run --ps-protocol t/bug.test Stopping master cluster Installing Test Databases Removing Stale Files Installing Master Databases running ../libexec/mysqld --no-defaults --bootstrap --skip-grant-tables --basedir=.. --datadir=mysql-test/var/master-data --skip-innodb --skip-ndbcluster --skip-bdb Installing Master Databases 1 running ../libexec/mysqld --no-defaults --bootstrap --skip-grant-tables --basedir=.. --datadir=mysql-test/var/master-data1 --skip-innodb --skip-ndbcluster --skip-bdb Installing Slave Databases running ../libexec/mysqld --no-defaults --bootstrap --skip-grant-tables --b asedir=.. --datadir=mysql-test/var/slave-data --skip-innodb --skip-ndbcluster --skip-bdb Manager disabled, skipping manager start. Loading Standard Test Databases Starting Tests TEST RESULT ------------------------------------------------------- bug [ fail ] Errors are (from /home/openxs/dbs/5.1/mysql-test/var/log/mysqltest-time) : mysqltest: At line 2: query 'create table t4 select * from t1 where 3 in (select 1 union select 2 union select UUID() union select 3)' failed: 1247: Reference '<result>' not supported (forward reference in item list) (the last lines may be the most important ones) Aborting: bug failed in ps-protocol mode. To continue, re-run with '--force'. Ending Tests Shutting-down MySQL daemon Master shutdown finished Slave shutdown finished
[20 Apr 2006 8:05]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/5190
[21 Apr 2006 9:05]
Georgi Kodinov
The bug is reproducible also for 5.0 and 4.1. I will move my fix back to 4.1 and will merge it up to 5.1
[26 Apr 2006 7:37]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/5547
[26 Apr 2006 7:39]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/5548
[2 May 2006 1:41]
Paul DuBois
Need the three-part version number(s) for the fix. Also, a one- or two-sentence characterization of the problem for the changelog would be appreciated. Thanks.
[2 May 2006 7:16]
Georgi Kodinov
The fix is pushed to the bk repositories (versions 4.1.19/5.0.22). A possible two sentence description would be : The IN-to-EXISTS transformation was making a reference to a parse tree fragment that was left out of the parse tree. This caused problems with prepared statements.
[2 May 2006 22:35]
Paul DuBois
Noted in 4.1.19, 5.0.22 changelogs.