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
b3ade670
Commit
b3ade670
authored
Jan 23, 2007
by
bar@bar.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-rpl
into mysql.com:/home/bar/mysql-5.1.b25081
parents
95f3f3f4
f3156a18
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
mysql-test/r/show_check.result
mysql-test/r/show_check.result
+8
-0
mysql-test/t/show_check.test
mysql-test/t/show_check.test
+12
-0
sql/sql_show.cc
sql/sql_show.cc
+4
-4
No files found.
mysql-test/r/show_check.result
View file @
b3ade670
...
...
@@ -730,4 +730,12 @@ show keys from `mysqlttest\1`.`a\b`;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
drop table `mysqlttest\1`.`a\b`;
drop database `mysqlttest\1`;
set names utf8;
drop table if exists `été`;
create table `été` (field1 int);
show full tables;
Tables_in_test Table_type
été BASE TABLE
drop table `été`;
set names latin1;
End of 5.1 tests
mysql-test/t/show_check.test
View file @
b3ade670
...
...
@@ -563,4 +563,16 @@ show keys from `mysqlttest\1`.`a\b`;
drop
table
`mysqlttest\1`
.
`a\b`
;
drop
database
`mysqlttest\1`
;
#
# Bug#25081 SHOW FULL TABLES on table with latin chars in name fails
#
set
names
utf8
;
--
disable_warnings
drop
table
if
exists
`été`
;
--
enable_warnings
create
table
`été`
(
field1
int
);
show
full
tables
;
drop
table
`été`
;
set
names
latin1
;
--
echo
End
of
5.1
tests
sql/sql_show.cc
View file @
b3ade670
...
...
@@ -2489,7 +2489,7 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
ST_SCHEMA_TABLE
*
schema_table
=
tables
->
schema_table
;
SELECT_LEX
sel
;
INDEX_FIELD_VALUES
idx_field_vals
;
char
path
[
FN_REFLEN
],
*
end
,
*
base_name
,
*
orig_base_name
,
*
file_name
;
char
path
[
FN_REFLEN
],
*
base_name
,
*
orig_base_name
,
*
file_name
;
uint
len
;
bool
with_i_schema
;
enum
enum_schema_tables
schema_table_idx
;
...
...
@@ -2506,7 +2506,6 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
lex
->
view_prepare_mode
=
TRUE
;
DBUG_ENTER
(
"get_all_tables"
);
LINT_INIT
(
end
);
LINT_INIT
(
len
);
lex
->
reset_n_backup_query_tables_list
(
&
query_tables_list_backup
);
...
...
@@ -2597,7 +2596,6 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
else
{
len
=
build_table_filename
(
path
,
sizeof
(
path
),
base_name
,
""
,
""
,
0
);
end
=
path
+
len
;
len
=
FN_LEN
-
len
;
find_files_result
res
=
find_files
(
thd
,
&
files
,
base_name
,
path
,
idx_field_vals
.
table_value
,
0
);
...
...
@@ -2647,7 +2645,9 @@ int get_all_tables(THD *thd, TABLE_LIST *tables, COND *cond)
}
else
{
my_snprintf
(
end
,
len
,
"/%s%s"
,
file_name
,
reg_ext
);
build_table_filename
(
path
,
sizeof
(
path
),
base_name
,
file_name
,
reg_ext
,
0
);
switch
(
mysql_frm_type
(
thd
,
path
,
&
not_used
))
{
case
FRMTYPE_ERROR
:
table
->
field
[
3
]
->
store
(
STRING_WITH_LEN
(
"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