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
dd1e0fb8
Commit
dd1e0fb8
authored
Aug 19, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-5.0-11711
into mysql.com:/home/jimw/my/mysql-5.0-clean
parents
6c03c925
2b041344
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
10 deletions
+13
-10
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+6
-6
sql/sql_show.cc
sql/sql_show.cc
+5
-3
sql/table.h
sql/table.h
+2
-1
No files found.
mysql-test/r/information_schema.result
View file @
dd1e0fb8
...
...
@@ -585,8 +585,8 @@ select TABLE_NAME,TABLE_TYPE,ENGINE
from information_schema.tables
where table_schema='information_schema' limit 2;
TABLE_NAME TABLE_TYPE ENGINE
CHARACTER_SETS
TEMPORARY
MEMORY
COLLATIONS
TEMPORARY
MEMORY
CHARACTER_SETS
SYSTEM VIEW
MEMORY
COLLATIONS
SYSTEM VIEW
MEMORY
show tables from information_schema like "T%";
Tables_in_information_schema (T%)
TABLES
...
...
@@ -598,10 +598,10 @@ ERROR HY000: Can't create database 'information_schema'; database exists
use information_schema;
show full tables like "T%";
Tables_in_information_schema (T%) Table_type
TABLES
TEMPORARY
TABLE_CONSTRAINTS
TEMPORARY
TABLE_PRIVILEGES
TEMPORARY
TRIGGERS
TEMPORARY
TABLES
SYSTEM VIEW
TABLE_CONSTRAINTS
SYSTEM VIEW
TABLE_PRIVILEGES
SYSTEM VIEW
TRIGGERS
SYSTEM VIEW
create table t1(a int);
ERROR 42S02: Unknown table 't1' in information_schema
use test;
...
...
sql/sql_show.cc
View file @
dd1e0fb8
...
...
@@ -2052,7 +2052,7 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
{
if
(
with_i_schema
)
{
table
->
field
[
3
]
->
store
(
"
TEMPORARY"
,
9
,
system_charset_info
);
table
->
field
[
3
]
->
store
(
"
SYSTEM VIEW"
,
11
,
system_charset_info
);
}
else
{
...
...
@@ -2220,7 +2220,9 @@ static int get_schema_tables_record(THD *thd, struct st_table_list *tables,
file
->
info
(
HA_STATUS_VARIABLE
|
HA_STATUS_TIME
|
HA_STATUS_AUTO
|
HA_STATUS_NO_LOCK
);
if
(
share
->
tmp_table
==
TMP_TABLE
)
if
(
share
->
tmp_table
==
SYSTEM_TMP_TABLE
)
table
->
field
[
3
]
->
store
(
"SYSTEM VIEW"
,
11
,
cs
);
else
if
(
share
->
tmp_table
)
table
->
field
[
3
]
->
store
(
"TEMPORARY"
,
9
,
cs
);
else
table
->
field
[
3
]
->
store
(
"BASE TABLE"
,
10
,
cs
);
...
...
@@ -3560,7 +3562,7 @@ int mysql_schema_table(THD *thd, LEX *lex, TABLE_LIST *table_list)
{
DBUG_RETURN
(
1
);
}
table
->
s
->
tmp_table
=
TMP_TABLE
;
table
->
s
->
tmp_table
=
SYSTEM_
TMP_TABLE
;
table
->
grant
.
privilege
=
SELECT_ACL
;
/*
This test is necessary to make
...
...
sql/table.h
View file @
dd1e0fb8
...
...
@@ -49,7 +49,8 @@ typedef struct st_grant_info
ulong
want_privilege
;
}
GRANT_INFO
;
enum
tmp_table_type
{
NO_TMP_TABLE
=
0
,
TMP_TABLE
=
1
,
TRANSACTIONAL_TMP_TABLE
=
2
};
enum
tmp_table_type
{
NO_TMP_TABLE
=
0
,
TMP_TABLE
=
1
,
TRANSACTIONAL_TMP_TABLE
=
2
,
SYSTEM_TMP_TABLE
=
3
};
enum
frm_type_enum
{
...
...
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