[MDEV-2269] LP:704337 - Item_in_subselect::val_int incorrectly called for a DELETE statement in prepared mode resulting in failed assert. Created: 2011-01-18 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | Timour Katchaounov (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
When run with --ps-protocol the test file subselect.test crashes with DELETE FROM t1 WHERE topic IN (SELECT DISTINCT topic FROM t2 WHERE NOT Results in Item_in_subselect::val_int() being called incorrectly, function=0xd178a0 "virtual longlong Item_in_subselect::val_int()") at assert.c:81 |
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2011-01-18 ] |
|
Re: Item_in_subselect::val_int incorrectly called for a DELETE statement in prepared mode resulting in failed assert. CREATE TABLE t1 ( CREATE TABLE t2 ( CREATE TABLE t3 ( INSERT INTO t1 VALUES ('joce','1','','joce'),('test','2','','test'); INSERT INTO t2 VALUES ('joce','1','','joce'),('test','2','','test'); INSERT INTO t3 VALUES (1,1); – this statement works fine prepare st1 from " – this statement results in a failed assert |
| Comment by Timour Katchaounov (Inactive) [ 2011-01-18 ] |
|
Re: Item_in_subselect::val_int incorrectly called for a DELETE statement in prepared mode resulting in failed assert. create table t1 (c1 int); prepare st1 from "DELETE FROM t1 WHERE c1 IN (SELECT c2 FROM t2)"; |
| Comment by Rasmus Johansson (Inactive) [ 2011-01-18 ] |
|
Launchpad bug id: 704337 |