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
a68bfdc3
Commit
a68bfdc3
authored
Jun 16, 2005
by
gluh@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/gluh/MySQL/Merge/5.0
parents
d2b54e0a
c7dde629
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
15 deletions
+30
-15
mysql-test/r/information_schema.result
mysql-test/r/information_schema.result
+3
-0
mysql-test/t/information_schema.test
mysql-test/t/information_schema.test
+5
-0
sql/sql_show.cc
sql/sql_show.cc
+22
-15
No files found.
mysql-test/r/information_schema.result
View file @
a68bfdc3
...
@@ -832,3 +832,6 @@ MODIFIES SQL DATA
...
@@ -832,3 +832,6 @@ MODIFIES SQL DATA
CONTAINS SQL
CONTAINS SQL
drop procedure p1;
drop procedure p1;
drop procedure p2;
drop procedure p2;
show create database information_schema;
Database Create Database
information_schema CREATE DATABASE `information_schema` /*!40100 DEFAULT CHARACTER SET utf8 */
mysql-test/t/information_schema.test
View file @
a68bfdc3
...
@@ -552,3 +552,8 @@ select sql_data_access from information_schema.routines
...
@@ -552,3 +552,8 @@ select sql_data_access from information_schema.routines
where
specific_name
like
'p%'
;
where
specific_name
like
'p%'
;
drop
procedure
p1
;
drop
procedure
p1
;
drop
procedure
p2
;
drop
procedure
p2
;
#
# Bug #9434 SHOW CREATE DATABASE information_schema;
#
show
create
database
information_schema
;
sql/sql_show.cc
View file @
a68bfdc3
...
@@ -448,7 +448,14 @@ bool mysqld_show_create_db(THD *thd, char *dbname,
...
@@ -448,7 +448,14 @@ bool mysqld_show_create_db(THD *thd, char *dbname,
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
#endif
#endif
if
(
!
my_strcasecmp
(
system_charset_info
,
dbname
,
information_schema_name
.
str
))
{
dbname
=
information_schema_name
.
str
;
create
.
default_table_charset
=
system_charset_info
;
}
else
{
(
void
)
sprintf
(
path
,
"%s/%s"
,
mysql_data_home
,
dbname
);
(
void
)
sprintf
(
path
,
"%s/%s"
,
mysql_data_home
,
dbname
);
length
=
unpack_dirname
(
path
,
path
);
// Convert if not unix
length
=
unpack_dirname
(
path
,
path
);
// Convert if not unix
found_libchar
=
0
;
found_libchar
=
0
;
...
@@ -466,7 +473,7 @@ bool mysqld_show_create_db(THD *thd, char *dbname,
...
@@ -466,7 +473,7 @@ bool mysqld_show_create_db(THD *thd, char *dbname,
path
[
length
-
1
]
=
FN_LIBCHAR
;
path
[
length
-
1
]
=
FN_LIBCHAR
;
strmov
(
path
+
length
,
MY_DB_OPT_FILE
);
strmov
(
path
+
length
,
MY_DB_OPT_FILE
);
load_db_opt
(
thd
,
path
,
&
create
);
load_db_opt
(
thd
,
path
,
&
create
);
}
List
<
Item
>
field_list
;
List
<
Item
>
field_list
;
field_list
.
push_back
(
new
Item_empty_string
(
"Database"
,
NAME_LEN
));
field_list
.
push_back
(
new
Item_empty_string
(
"Database"
,
NAME_LEN
));
field_list
.
push_back
(
new
Item_empty_string
(
"Create Database"
,
1024
));
field_list
.
push_back
(
new
Item_empty_string
(
"Create Database"
,
1024
));
...
...
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