mirror of
https://github.com/MariaDB/server.git
synced 2026-04-27 02:35:29 +02:00
MDEV-20730: Syntax error on SELECT INTO @variable with CTE
added forgotem WITH option to spacial case with INTO
This commit is contained in:
parent
421d52e896
commit
5b6b16636d
4 changed files with 62 additions and 0 deletions
|
|
@ -1182,3 +1182,18 @@ with t as (select 1 as t) select * from t;
|
|||
with columns as (select 1 as t) select * from columns;
|
||||
|
||||
use test;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-20730: Syntax error on SELECT INTO @variable with CTE
|
||||
--echo #
|
||||
|
||||
with data as (select 1 as id)
|
||||
select id into @myid from data;
|
||||
set @save_sql_mode = @@sql_mode;
|
||||
set sql_mode="oracle";
|
||||
with data as (select 1 as id)
|
||||
select id into @myid from data;
|
||||
set sql_mode= @save_sql_mode;
|
||||
|
||||
--echo # End of 10.4 tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue