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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
c7fc3773
Commit
c7fc3773
authored
Feb 27, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/dlenev/src/mysql-5.0-bg13525
parents
6e7d47e2
0aae3cd5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
mysql-test/r/view.result
mysql-test/r/view.result
+10
-0
mysql-test/t/view.test
mysql-test/t/view.test
+15
-0
sql/sql_show.cc
sql/sql_show.cc
+3
-0
No files found.
mysql-test/r/view.result
View file @
c7fc3773
...
@@ -2529,3 +2529,13 @@ Warnings:
...
@@ -2529,3 +2529,13 @@ Warnings:
Warning 1052 Column 'x' in group statement is ambiguous
Warning 1052 Column 'x' in group statement is ambiguous
DROP VIEW v1;
DROP VIEW v1;
DROP TABLE t1;
DROP TABLE t1;
drop table if exists t1;
drop view if exists v1;
create table t1 (id int);
create view v1 as select * from t1;
drop table t1;
show create view v1;
drop view v1;
//
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select sql_no_cache `test`.`t1`.`id` AS `id` from `t1`
mysql-test/t/view.test
View file @
c7fc3773
...
@@ -2370,3 +2370,18 @@ SELECT IF(x IS NULL, 'blank', 'not blank') AS x FROM v1 GROUP BY x;
...
@@ -2370,3 +2370,18 @@ SELECT IF(x IS NULL, 'blank', 'not blank') AS x FROM v1 GROUP BY x;
DROP
VIEW
v1
;
DROP
VIEW
v1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# BUG#15943: mysql_next_result hangs on invalid SHOW CREATE VIEW
#
delimiter
//;
drop
table
if
exists
t1
;
drop
view
if
exists
v1
;
create
table
t1
(
id
int
);
create
view
v1
as
select
*
from
t1
;
drop
table
t1
;
show
create
view
v1
;
drop
view
v1
;
//
delimiter
;
//
sql/sql_show.cc
View file @
c7fc3773
...
@@ -365,12 +365,15 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list)
...
@@ -365,12 +365,15 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list)
{
{
if
(
!
table_list
->
view
||
thd
->
net
.
last_errno
!=
ER_VIEW_INVALID
)
if
(
!
table_list
->
view
||
thd
->
net
.
last_errno
!=
ER_VIEW_INVALID
)
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
/*
/*
Clear all messages with 'error' level status and
Clear all messages with 'error' level status and
issue a warning with 'warning' level status in
issue a warning with 'warning' level status in
case of invalid view and last error is ER_VIEW_INVALID
case of invalid view and last error is ER_VIEW_INVALID
*/
*/
mysql_reset_errors
(
thd
,
true
);
mysql_reset_errors
(
thd
,
true
);
thd
->
clear_error
();
push_warning_printf
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
push_warning_printf
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
ER_VIEW_INVALID
,
ER_VIEW_INVALID
,
ER
(
ER_VIEW_INVALID
),
ER
(
ER_VIEW_INVALID
),
...
...
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