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
3c23f4dc
Commit
3c23f4dc
authored
Dec 22, 2005
by
brian@zim.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into zim.(none):/home/brian/mysql/cluster-5.1
parents
7b8fa1e3
fe7ecfd5
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
79 additions
and
1 deletion
+79
-1
libmysqld/Makefile.am
libmysqld/Makefile.am
+1
-0
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+4
-0
mysql-test/r/information_schema_db.result
mysql-test/r/information_schema_db.result
+1
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+6
-0
sql/ha_partition.cc
sql/ha_partition.cc
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+1
-0
sql/sql_show.cc
sql/sql_show.cc
+58
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+3
-0
sql/table.h
sql/table.h
+4
-0
No files found.
libmysqld/Makefile.am
View file @
3c23f4dc
...
...
@@ -64,6 +64,7 @@ sqlsources = derror.cc field.cc field_conv.cc strfunc.cc filesort.cc \
spatial.cc gstream.cc sql_help.cc tztime.cc sql_cursor.cc
\
sp_head.cc sp_pcontext.cc sp.cc sp_cache.cc sp_rcontext.cc
\
parse_file.cc sql_view.cc sql_trigger.cc my_decimal.cc
\
item_xmlfunc.cc
\
rpl_filter.cc sql_partition.cc handlerton.cc sql_plugin.cc
libmysqld_int_a_SOURCES
=
$(libmysqld_sources)
$(libmysqlsources)
$(sqlsources)
...
...
mysql-test/r/information_schema.result
View file @
3c23f4dc
...
...
@@ -41,6 +41,7 @@ COLLATIONS
COLLATION_CHARACTER_SET_APPLICABILITY
COLUMNS
COLUMN_PRIVILEGES
ENGINES
KEY_COLUMN_USAGE
PLUGINS
ROUTINES
...
...
@@ -1058,3 +1059,6 @@ where table_name="v1";
table_type
VIEW
drop view v1;
select * from information_schema.engines WHERE ENGINE="MyISAM";
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
MyISAM ENABLED Default engine as of MySQL 3.23 with great performance NO NO NO
mysql-test/r/information_schema_db.result
View file @
3c23f4dc
...
...
@@ -6,6 +6,7 @@ COLLATIONS
COLLATION_CHARACTER_SET_APPLICABILITY
COLUMNS
COLUMN_PRIVILEGES
ENGINES
KEY_COLUMN_USAGE
PLUGINS
ROUTINES
...
...
mysql-test/t/information_schema.test
View file @
3c23f4dc
...
...
@@ -748,3 +748,9 @@ drop table t1;
select
table_type
from
information_schema
.
tables
where
table_name
=
"v1"
;
drop
view
v1
;
#
# Show engines
#
select
*
from
information_schema
.
engines
WHERE
ENGINE
=
"MyISAM"
;
sql/ha_partition.cc
View file @
3c23f4dc
...
...
@@ -96,7 +96,7 @@ handlerton partition_hton = {
NULL
,
/* Start Consistent Snapshot */
NULL
,
/* Flush logs */
NULL
,
/* Show status */
HTON_NOT_USER_SELECTABLE
HTON_NOT_USER_SELECTABLE
|
HTON_HIDDEN
};
static
handler
*
partition_create_handler
(
TABLE_SHARE
*
share
)
...
...
sql/sql_parse.cc
View file @
3c23f4dc
...
...
@@ -2229,6 +2229,7 @@ int prepare_schema_table(THD *thd, LEX *lex, Table_ident *table_ident,
case
SCH_STATUS
:
case
SCH_PROCEDURES
:
case
SCH_CHARSETS
:
case
SCH_ENGINES
:
case
SCH_COLLATIONS
:
case
SCH_COLLATION_CHARACTER_SET_APPLICABILITY
:
case
SCH_USER_PRIVILEGES
:
...
...
sql/sql_show.cc
View file @
3c23f4dc
...
...
@@ -2917,6 +2917,46 @@ int fill_schema_charsets(THD *thd, TABLE_LIST *tables, COND *cond)
}
int
fill_schema_engines
(
THD
*
thd
,
TABLE_LIST
*
tables
,
COND
*
cond
)
{
const
char
*
wild
=
thd
->
lex
->
wild
?
thd
->
lex
->
wild
->
ptr
()
:
NullS
;
TABLE
*
table
=
tables
->
table
;
CHARSET_INFO
*
scs
=
system_charset_info
;
handlerton
**
types
;
DBUG_ENTER
(
"fill_schema_engines"
);
for
(
types
=
sys_table_types
;
*
types
;
types
++
)
{
if
((
*
types
)
->
flags
&
HTON_HIDDEN
)
continue
;
if
(
!
(
wild
&&
wild
[
0
]
&&
wild_case_compare
(
scs
,
(
*
types
)
->
name
,
wild
)))
{
const
char
*
tmp
;
restore_record
(
table
,
s
->
default_values
);
table
->
field
[
0
]
->
store
((
*
types
)
->
name
,
strlen
((
*
types
)
->
name
),
scs
);
tmp
=
(
*
types
)
->
state
?
"DISABLED"
:
"ENABLED"
;
table
->
field
[
1
]
->
store
(
tmp
,
strlen
(
tmp
),
scs
);
table
->
field
[
2
]
->
store
((
*
types
)
->
comment
,
strlen
((
*
types
)
->
comment
),
scs
);
tmp
=
(
*
types
)
->
commit
?
"YES"
:
"NO"
;
table
->
field
[
3
]
->
store
(
tmp
,
strlen
(
tmp
),
scs
);
tmp
=
(
*
types
)
->
prepare
?
"YES"
:
"NO"
;
table
->
field
[
4
]
->
store
(
tmp
,
strlen
(
tmp
),
scs
);
tmp
=
(
*
types
)
->
savepoint_set
?
"YES"
:
"NO"
;
table
->
field
[
5
]
->
store
(
tmp
,
strlen
(
tmp
),
scs
);
if
(
schema_table_store_record
(
thd
,
table
))
DBUG_RETURN
(
1
);
}
}
DBUG_RETURN
(
0
);
}
int
fill_schema_collation
(
THD
*
thd
,
TABLE_LIST
*
tables
,
COND
*
cond
)
{
CHARSET_INFO
**
cs
;
...
...
@@ -3971,6 +4011,7 @@ int make_schema_select(THD *thd, SELECT_LEX *sel,
ST_SCHEMA_TABLE
*
schema_table
=
get_schema_table
(
schema_table_idx
);
LEX_STRING
db
,
table
;
DBUG_ENTER
(
"mysql_schema_select"
);
DBUG_PRINT
(
"enter"
,
(
"mysql_schema_select: %s"
,
schema_table
->
table_name
));
/*
We have to make non const db_name & table_name
because of lower_case_table_names
...
...
@@ -4124,6 +4165,18 @@ ST_FIELD_INFO collation_fields_info[]=
};
ST_FIELD_INFO
engines_fields_info
[]
=
{
{
"ENGINE"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Engine"
},
{
"SUPPORT"
,
8
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Support"
},
{
"COMMENT"
,
80
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Comment"
},
{
"TRANSACTIONS"
,
3
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Transactions"
},
{
"XA"
,
3
,
MYSQL_TYPE_STRING
,
0
,
0
,
"XA"
},
{
"SAVEPOINTS"
,
3
,
MYSQL_TYPE_STRING
,
0
,
0
,
"Savepoints"
},
{
0
,
0
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
}
};
ST_FIELD_INFO
coll_charset_app_fields_info
[]
=
{
{
"COLLATION_NAME"
,
64
,
MYSQL_TYPE_STRING
,
0
,
0
,
0
},
...
...
@@ -4339,6 +4392,9 @@ ST_FIELD_INFO plugin_fields_info[]=
/*
Description of ST_FIELD_INFO in table.h
Make sure that the order of schema_tables and enum_schema_tables are the same.
*/
ST_SCHEMA_TABLE
schema_tables
[]
=
...
...
@@ -4353,6 +4409,8 @@ ST_SCHEMA_TABLE schema_tables[]=
get_all_tables
,
make_columns_old_format
,
get_schema_column_record
,
1
,
2
,
0
},
{
"COLUMN_PRIVILEGES"
,
column_privileges_fields_info
,
create_schema_table
,
fill_schema_column_privileges
,
0
,
0
,
-
1
,
-
1
,
0
},
{
"ENGINES"
,
engines_fields_info
,
create_schema_table
,
fill_schema_engines
,
make_old_format
,
0
,
-
1
,
-
1
,
0
},
{
"KEY_COLUMN_USAGE"
,
key_column_usage_fields_info
,
create_schema_table
,
get_all_tables
,
0
,
get_schema_key_column_usage_record
,
4
,
5
,
0
},
{
"OPEN_TABLES"
,
open_tables_fields_info
,
create_schema_table
,
...
...
sql/sql_yacc.yy
View file @
3c23f4dc
...
...
@@ -7114,6 +7114,9 @@ show_param:
{
LEX *lex=Lex;
lex->sql_command= SQLCOM_SHOW_STORAGE_ENGINES;
lex->orig_sql_command= SQLCOM_SHOW_AUTHORS;
if (prepare_schema_table(YYTHD, lex, 0, SCH_ENGINES))
YYABORT;
}
| AUTHORS_SYM
{
...
...
sql/table.h
View file @
3c23f4dc
...
...
@@ -317,6 +317,9 @@ typedef struct st_foreign_key_info
List
<
LEX_STRING
>
referenced_fields
;
}
FOREIGN_KEY_INFO
;
/*
Make sure that the order of schema_tables and enum_schema_tables are the same.
*/
enum
enum_schema_tables
{
...
...
@@ -325,6 +328,7 @@ enum enum_schema_tables
SCH_COLLATION_CHARACTER_SET_APPLICABILITY
,
SCH_COLUMNS
,
SCH_COLUMN_PRIVILEGES
,
SCH_ENGINES
,
SCH_KEY_COLUMN_USAGE
,
SCH_OPEN_TABLES
,
SCH_PLUGINS
,
...
...
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