[MDEV-3257] LP:825035 - Wrong result on second execution of a prepared outer join with empty table Created: 2011-08-12 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: | Major |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
If one of the operands of an outer join is an empty table, the second execution as a prepared statement returns no rows. explain: id select_type table type possible_keys key key_len ref rows Extra test case: CREATE TABLE t1 (a int); CREATE TABLE t2 (a int); CREATE PROCEDURE sp1 () CALL sp1(); bzr version-info: revision-id: <email address hidden> Reproducible with maria-5.3. Not reproducible with maria-5.2, mysql-5.5. This bug prevents further testing of subqueries in a prepared statement context. |
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2011-08-12 ] |
|
Re: Wrong result on second execution of a prepared outer join with empty table CREATE TABLE t1 (a int); prepare st1 from " execute st1; |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 825035 |