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
cb639faf
Commit
cb639faf
authored
Sep 27, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge build.mysql.com:/home/bk/mysql-4.0
into build.mysql.com:/users/rburnett/mysql-4.0
parents
b99d728a
6dc8d45c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
sql/sql_show.cc
sql/sql_show.cc
+5
-9
No files found.
sql/sql_show.cc
View file @
cb639faf
...
@@ -193,27 +193,23 @@ mysql_find_files(THD *thd,List<char> *files, const char *db,const char *path,
...
@@ -193,27 +193,23 @@ mysql_find_files(THD *thd,List<char> *files, const char *db,const char *path,
{
/* Return databases */
{
/* Return databases */
#ifdef USE_SYMDIR
#ifdef USE_SYMDIR
char
*
ext
;
char
*
ext
;
char
buff
[
FN_REFLEN
];
if
(
my_use_symdir
&&
!
strcmp
(
ext
=
fn_ext
(
file
->
name
),
".sym"
))
if
(
my_use_symdir
&&
!
strcmp
(
ext
=
fn_ext
(
file
->
name
),
".sym"
))
{
{
/* Only show the sym file if it points to a directory */
/* Only show the sym file if it points to a directory */
char
buff
[
FN_REFLEN
],
*
end
;
char
*
end
;
MY_STAT
status
;
*
ext
=
0
;
/* Remove extension */
*
ext
=
0
;
/* Remove extension */
unpack_dirname
(
buff
,
file
->
name
);
unpack_dirname
(
buff
,
file
->
name
);
end
=
strend
(
buff
);
end
=
strend
(
buff
);
if
(
end
!=
buff
&&
end
[
-
1
]
==
FN_LIBCHAR
)
if
(
end
!=
buff
&&
end
[
-
1
]
==
FN_LIBCHAR
)
end
[
-
1
]
=
0
;
// Remove end FN_LIBCHAR
end
[
-
1
]
=
0
;
// Remove end FN_LIBCHAR
if
(
!
my_stat
(
buff
,
&
status
,
MYF
(
0
))
||
if
(
!
my_stat
(
buff
,
file
->
mystat
,
MYF
(
0
)))
!
MY_S_ISDIR
(
status
.
st_mode
))
continue
;
continue
;
}
}
else
#endif
#endif
{
if
(
file
->
name
[
0
]
==
'.'
||
!
MY_S_ISDIR
(
file
->
mystat
->
st_mode
)
||
if
(
file
->
name
[
0
]
==
'.'
||
!
MY_S_ISDIR
(
file
->
mystat
->
st_mode
)
||
(
wild
&&
wild_compare
(
file
->
name
,
wild
,
0
)))
(
wild
&&
wild_compare
(
file
->
name
,
wild
,
0
)))
continue
;
continue
;
}
}
}
else
else
{
{
...
...
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