mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 22:25:32 +02:00
Fix for LP BUG#910123 MariaDB 5.3.3 causes 1093 error on Drupal
Problem was that now we can merge derived table (subquery in the FROM clause). Fix: in case of detected conflict and presence of derived table "over" the table which cased the conflict - try materialization strategy.
This commit is contained in:
parent
7ab53e8062
commit
764eeeee74
7 changed files with 82 additions and 8 deletions
|
|
@ -202,5 +202,15 @@ RIGHT JOIN (
|
|||
|
||||
drop table t1,t2,t3,t4;
|
||||
|
||||
--echo #
|
||||
--echo # LP BUG#910123 MariaDB 5.3.3 causes 1093 error on Drupal
|
||||
--echo # Fix: force materialization in case of conflict
|
||||
--echo #
|
||||
SET optimizer_switch='derived_merge=on';
|
||||
CREATE TABLE t1 ( i INT );
|
||||
INSERT INTO t1 VALUES ( (SELECT 1 FROM ( SELECT * FROM t1 ) as a) );
|
||||
drop table t1;
|
||||
set optimizer_switch=@save_optimizer_switch;
|
||||
|
||||
# The following command must be the last one the file
|
||||
set optimizer_switch=@exit_optimizer_switch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue