[MDEV-3621] LP:849763 - Wrong result with second execution of prepared statement with semijoin + view Created: 2011-09-14 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: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query: returns a no rows on its second execution as a prepared statement with semijoin. explain: id select_type table type possible_keys key key_len ref rows Extra correct result: EXECUTE st1; minimal optimizer switch: semijoin=on; bzr version-info test case: --source include/have_innodb.inc CREATE TABLE t1 ( c varchar(1)) engine=innodb; CREATE TABLE t2 ( a integer, b varchar(1), c varchar(1)) engine=innodb; CREATE OR REPLACE VIEW v1 AS SELECT * FROM t1; PREPARE st1 FROM ' |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 849763 |