[MDEV-2660] LP:1001500 - Crash on the second execution of the PS for a query with degenerated conjunctive condition Created: 2012-05-19 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: | Igor Babaev | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following test case causes a crash of the server in MariDB 5.2/5.3/5.5 on the second execution of the prepared statement: CREATE TABLE t1 ( col_varchar_key VARCHAR(1), PRIMARY KEY (pk), INSERT INTO t1 ( CREATE TABLE t2 ( col_varchar_key VARCHAR(1), PRIMARY KEY (pk), INSERT INTO t2 ( PREPARE stmt FROM ' EXECUTE stmt; DEALLOCATE PREPARE stmt; DROP TABLE t1, t2; If to replace the conjunctive degenerated condition alias1.pk for the equivalent predicate alias.pk<>0 MariaDB [test]> PREPARE stmt FROM ' MariaDB [test]> EXECUTE stmt;
--------
-------- MariaDB [test]> EXECUTE stmt;
--------
-------- (See also bug #12582849 from the mysql code line) |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2012-05-25 ] |
|
Launchpad bug id: 1001500 |