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
cc36a331
Commit
cc36a331
authored
Dec 16, 2004
by
ram@gw.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0
into gw.mysql.r18.ru:/usr/home/ram/work/5.0.b6843
parents
ecd9203f
6a4d28c0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+12
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+5
-0
sql/sql_show.cc
sql/sql_show.cc
+8
-1
No files found.
mysql-test/r/information_schema.result
View file @
cc36a331
...
...
@@ -599,6 +599,18 @@ create view t3 (c) as select sub1(1);
create table t4(f1 int, KEY f1_key (f1));
drop table t1;
drop function sub1;
select table_name from information_schema.views
where table_schema='test';
table_name
Warnings:
Warning 1356 View 'test.t2' references invalid table(s) or column(s) or function(s)
Warning 1356 View 'test.t3' references invalid table(s) or column(s) or function(s)
select table_name from information_schema.views
where table_schema='test';
table_name
Warnings:
Warning 1356 View 'test.t2' references invalid table(s) or column(s) or function(s)
Warning 1356 View 'test.t3' references invalid table(s) or column(s) or function(s)
select column_name from information_schema.columns
where table_schema='test';
column_name
...
...
mysql-test/t/information_schema.test
View file @
cc36a331
...
...
@@ -295,6 +295,7 @@ show tables like "T%";
#
# Bug#7212: information_schema: "Can't find file" errors if storage engine gone
# Bug#7211: information_schema: crash if bad view
#
use
test
;
create
function
sub1
(
i
int
)
returns
int
...
...
@@ -305,6 +306,10 @@ create view t3 (c) as select sub1(1);
create
table
t4
(
f1
int
,
KEY
f1_key
(
f1
));
drop
table
t1
;
drop
function
sub1
;
select
table_name
from
information_schema
.
views
where
table_schema
=
'test'
;
select
table_name
from
information_schema
.
views
where
table_schema
=
'test'
;
select
column_name
from
information_schema
.
columns
where
table_schema
=
'test'
;
select
index_name
from
information_schema
.
statistics
where
table_schema
=
'test'
;
...
...
sql/sql_show.cc
View file @
cc36a331
...
...
@@ -2871,7 +2871,14 @@ static int get_schema_views_record(THD *thd, struct st_table_list *tables,
table
->
file
->
write_row
(
table
->
record
[
0
]);
}
}
DBUG_RETURN
(
res
);
else
{
if
(
tables
->
view
)
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
thd
->
net
.
last_errno
,
thd
->
net
.
last_error
);
thd
->
clear_error
();
}
DBUG_RETURN
(
0
);
}
...
...
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