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
4cd0ef49
Commit
4cd0ef49
authored
Aug 18, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge lmy004.:/work/mysql-5.0-clean
into lmy004.:/work/mysql-5.0-bug12591 sql/sql_show.cc: Auto merged
parents
88a7d01e
7370b241
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
mysql-test/r/show_check.result
mysql-test/r/show_check.result
+2
-0
mysql-test/t/show_check.test
mysql-test/t/show_check.test
+5
-0
sql/sql_show.cc
sql/sql_show.cc
+7
-1
No files found.
mysql-test/r/show_check.result
View file @
4cd0ef49
...
@@ -555,3 +555,5 @@ Database Table In_use Name_locked
...
@@ -555,3 +555,5 @@ Database Table In_use Name_locked
DROP TABLE txt1;
DROP TABLE txt1;
DROP TABLE tyt2;
DROP TABLE tyt2;
DROP TABLE urkunde;
DROP TABLE urkunde;
SHOW TABLES FROM non_existing_database;
ERROR 42000: Unknown database 'non_existing_database'
mysql-test/t/show_check.test
View file @
4cd0ef49
...
@@ -405,3 +405,8 @@ SHOW OPEN TABLES;
...
@@ -405,3 +405,8 @@ SHOW OPEN TABLES;
DROP
TABLE
txt1
;
DROP
TABLE
txt1
;
DROP
TABLE
tyt2
;
DROP
TABLE
tyt2
;
DROP
TABLE
urkunde
;
DROP
TABLE
urkunde
;
#
# BUG #12591 (SHOW TABLES FROM dbname produces wrong error message)
#
--
error
1049
SHOW
TABLES
FROM
non_existing_database
;
sql/sql_show.cc
View file @
4cd0ef49
...
@@ -264,8 +264,14 @@ mysql_find_files(THD *thd,List<char> *files, const char *db,const char *path,
...
@@ -264,8 +264,14 @@ mysql_find_files(THD *thd,List<char> *files, const char *db,const char *path,
bzero
((
char
*
)
&
table_list
,
sizeof
(
table_list
));
bzero
((
char
*
)
&
table_list
,
sizeof
(
table_list
));
if
(
!
(
dirp
=
my_dir
(
path
,
MYF
(
MY_WME
|
(
dir
?
MY_WANT_STAT
:
0
)))))
if
(
!
(
dirp
=
my_dir
(
path
,
MYF
(
dir
?
MY_WANT_STAT
:
0
))))
{
if
(
my_errno
==
ENOENT
)
my_error
(
ER_BAD_DB_ERROR
,
MYF
(
ME_BELL
+
ME_WAITTANG
),
db
);
else
my_error
(
ER_CANT_READ_DIR
,
MYF
(
ME_BELL
+
ME_WAITTANG
),
path
,
my_errno
);
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
}
for
(
i
=
0
;
i
<
(
uint
)
dirp
->
number_off_files
;
i
++
)
for
(
i
=
0
;
i
<
(
uint
)
dirp
->
number_off_files
;
i
++
)
{
{
...
...
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