[MDEV-3189] LP:878199 - Crash in cp_buffer_from_ref with derived_with_keys and two views Created: 2011-10-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: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
This query: SELECT v1.a crashes when executed with derived_with_keys=on backtrace: #4 <signal handler called> explain: id select_type table type possible_keys key key_len ref rows Extra optimizer switch: derived_with_keys=on full switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,index_condition_pushdown=off,derived_merge=off,derived_with_keys=on,firstmatch=off,loosescan=off,materialization=off,in_to_exists=on,semijoin=off,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=off,semijoin_with_cache=off,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on bzr version-info: revision-id: <email address hidden> test case: INSERT INTO t1 VALUES ('2005-03-24 07:33','j'),('2003-06-13 23:19','c'); CREATE TABLE t2 ( b varchar(1)) ; CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1; CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2; SET SESSION optimizer_switch = 'derived_with_keys=on'; SELECT v1.a |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-10-20 ] |
|
Re: Crash in cp_buffer_from_ref with derived_with_keys and two views CREATE TABLE t1 ( a datetime, b varchar(1)) ; CREATE TABLE t2 ( b varchar(1)) ; CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v1 AS SELECT * FROM t1; CREATE OR REPLACE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t2; SET SESSION optimizer_switch = 'derived_with_keys=on'; SELECT v1.a |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 878199 |