mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
MDEV-7886 CREATE VIEW IF NOT EXISTS produces a wrong warning
This commit is contained in:
@@ -19,7 +19,7 @@ VIEW_DEFINITION
|
||||
select `test`.`t1`.`id` AS `id` from `test`.`t1` where (`test`.`t1`.`id` > 10)
|
||||
CREATE VIEW IF NOT EXISTS v1 AS SELECT * FROM t1 WHERE id>12;
|
||||
Warnings:
|
||||
Note 1050 Table 'test' already exists
|
||||
Note 1050 Table 'v1' already exists
|
||||
SELECT VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME='v1';
|
||||
VIEW_DEFINITION
|
||||
select `test`.`t1`.`id` AS `id` from `test`.`t1` where (`test`.`t1`.`id` > 10)
|
||||
|
Reference in New Issue
Block a user