Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
201c985b
Commit
201c985b
authored
Apr 13, 2015
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-7886 CREATE VIEW IF NOT EXISTS produces a wrong warning
parent
ed349270
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/r/create_drop_binlog.result
mysql-test/r/create_drop_binlog.result
+1
-1
mysql-test/r/create_drop_view.result
mysql-test/r/create_drop_view.result
+1
-1
mysql-test/suite/rpl/r/rpl_create_drop_view.result
mysql-test/suite/rpl/r/rpl_create_drop_view.result
+1
-1
sql/sql_view.cc
sql/sql_view.cc
+1
-1
No files found.
mysql-test/r/create_drop_binlog.result
View file @
201c985b
...
...
@@ -156,7 +156,7 @@ DROP VIEW v1;
CREATE VIEW IF NOT EXISTS v1 AS SELECT 1;
CREATE VIEW IF NOT EXISTS v1 AS SELECT 1;
Warnings:
Note 1050 Table '
test
' already exists
Note 1050 Table '
v1
' already exists
DROP VIEW IF EXISTS v1;
DROP VIEW IF EXISTS v1;
Warnings:
...
...
mysql-test/r/create_drop_view.result
View file @
201c985b
...
...
@@ -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)
...
...
mysql-test/suite/rpl/r/rpl_create_drop_view.result
View file @
201c985b
...
...
@@ -30,7 +30,7 @@ CREATE VIEW v1 AS SELECT * FROM t1 WHERE id>10;
ERROR 42S01: Table 'v1' already exists
CREATE VIEW IF NOT EXISTS v1 AS SELECT * FROM t1 WHERE id>10;
Warnings:
Note 1050 Table '
test
' already exists
Note 1050 Table '
v1
' already exists
CREATE OR REPLACE VIEW IF NOT EXISTS v1 AS SELECT * FROM t1 WHERE id>10;
ERROR HY000: Incorrect usage of OR REPLACE and IF NOT EXISTS
# Syncing slave with master
...
...
sql/sql_view.cc
View file @
201c985b
...
...
@@ -930,7 +930,7 @@ loop_out:
{
push_warning_printf
(
thd
,
Sql_condition
::
WARN_LEVEL_NOTE
,
ER_TABLE_EXISTS_ERROR
,
ER
(
ER_TABLE_EXISTS_ERROR
),
view
->
db
,
view
->
table_name
);
view
->
table_name
);
DBUG_RETURN
(
0
);
}
else
if
(
mode
==
VIEW_CREATE_NEW
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment