mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-10102 Disallow CREATE VIEW .. PROCEDURE ANALYSE() syntactically
This commit is contained in:
@ -3497,7 +3497,7 @@ DROP VIEW IF EXISTS v2 ;
|
||||
CREATE TABLE t1 (f1 BIGINT) ;
|
||||
SET @x=0;
|
||||
CREATE or REPLACE VIEW v1 AS Select 1 INTO @x;
|
||||
ERROR HY000: View's SELECT contains a 'INTO' clause
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @x' at line 1
|
||||
Select @x;
|
||||
@x
|
||||
0
|
||||
|
@ -3498,7 +3498,7 @@ DROP VIEW IF EXISTS v2 ;
|
||||
CREATE TABLE t1 (f1 BIGINT) ;
|
||||
SET @x=0;
|
||||
CREATE or REPLACE VIEW v1 AS Select 1 INTO @x;
|
||||
ERROR HY000: View's SELECT contains a 'INTO' clause
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INTO @x' at line 1
|
||||
Select @x;
|
||||
@x
|
||||
0
|
||||
|
Reference in New Issue
Block a user