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
55ee78ed
Commit
55ee78ed
authored
Dec 01, 2005
by
gluh@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/gluh/MySQL/Merge/5.0
into mysql.com:/home/gluh/MySQL/Merge/5.1-new
parents
05388459
1faac904
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+8
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+10
-0
sql/sql_show.cc
sql/sql_show.cc
+6
-0
No files found.
mysql-test/r/information_schema.result
View file @
55ee78ed
...
@@ -1048,3 +1048,11 @@ blob 65535 65535
...
@@ -1048,3 +1048,11 @@ blob 65535 65535
text 65535 65535
text 65535 65535
text 65535 32767
text 65535 32767
drop table t1;
drop table t1;
create table t1 (f1 int(11));
create view v1 as select * from t1;
drop table t1;
select table_type from information_schema.tables
where table_name="v1";
table_type
VIEW
drop view v1;
mysql-test/t/information_schema.test
View file @
55ee78ed
...
@@ -738,3 +738,13 @@ create table t1(a blob, b text charset utf8, c text charset ucs2);
...
@@ -738,3 +738,13 @@ create table t1(a blob, b text charset utf8, c text charset ucs2);
select
data_type
,
character_octet_length
,
character_maximum_length
select
data_type
,
character_octet_length
,
character_maximum_length
from
information_schema
.
columns
where
table_name
=
't1'
;
from
information_schema
.
columns
where
table_name
=
't1'
;
drop
table
t1
;
drop
table
t1
;
#
# Bug#14476 `information_schema`.`TABLES`.`TABLE_TYPE` with empty value
#
create
table
t1
(
f1
int
(
11
));
create
view
v1
as
select
*
from
t1
;
drop
table
t1
;
select
table_type
from
information_schema
.
tables
where
table_name
=
"v1"
;
drop
view
v1
;
sql/sql_show.cc
View file @
55ee78ed
...
@@ -2362,6 +2362,12 @@ static int get_schema_tables_record(THD *thd, struct st_table_list *tables,
...
@@ -2362,6 +2362,12 @@ static int get_schema_tables_record(THD *thd, struct st_table_list *tables,
there was errors during opening tables
there was errors during opening tables
*/
*/
const
char
*
error
=
thd
->
net
.
last_error
;
const
char
*
error
=
thd
->
net
.
last_error
;
if
(
tables
->
view
)
table
->
field
[
3
]
->
store
(
STRING_WITH_LEN
(
"VIEW"
),
cs
);
else
if
(
tables
->
schema_table
)
table
->
field
[
3
]
->
store
(
STRING_WITH_LEN
(
"SYSTEM VIEW"
),
cs
);
else
table
->
field
[
3
]
->
store
(
STRING_WITH_LEN
(
"BASE TABLE"
),
cs
);
table
->
field
[
20
]
->
store
(
error
,
strlen
(
error
),
cs
);
table
->
field
[
20
]
->
store
(
error
,
strlen
(
error
),
cs
);
thd
->
clear_error
();
thd
->
clear_error
();
}
}
...
...
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