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
aa6d99dd
Commit
aa6d99dd
authored
Nov 11, 2004
by
pem@mysql.comhem.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing filename case problems in sql_base.cc for views on MacOS X. (With help from sanja :)
parent
9c115a21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
sql/sql_base.cc
sql/sql_base.cc
+4
-5
No files found.
sql/sql_base.cc
View file @
aa6d99dd
...
...
@@ -582,6 +582,7 @@ TABLE_LIST *find_table_in_list(TABLE_LIST *table,
if
((
!
strcmp
(
table
->
db
,
db_name
)
&&
!
strcmp
(
table
->
real_name
,
table_name
))
||
(
table
->
view
&&
table
->
table
->
table_cache_key
&&
// it is not temporary table
!
my_strcasecmp
(
table_alias_charset
,
table
->
table
->
table_cache_key
,
db_name
)
&&
!
my_strcasecmp
(
table_alias_charset
,
...
...
@@ -626,6 +627,9 @@ TABLE_LIST* unique_table(TABLE_LIST *table, TABLE_LIST *table_list)
TABLE_LIST
*
res
;
const
char
*
d_name
=
table
->
db
,
*
t_name
=
table
->
real_name
;
char
d_name_buff
[
MAX_ALIAS_NAME
],
t_name_buff
[
MAX_ALIAS_NAME
];
/* temporary table is always unique */
if
(
table
->
table
&&
table
->
table
->
tmp_table
!=
NO_TMP_TABLE
)
return
0
;
if
(
table
->
view
)
{
/* it is view and table opened */
...
...
@@ -643,11 +647,6 @@ TABLE_LIST* unique_table(TABLE_LIST *table, TABLE_LIST *table_list)
d_name
=
table
->
table
->
table_cache_key
;
t_name
=
table
->
table
->
table_name
;
}
if
(
d_name
==
0
)
{
/* it's temporary table => always unique */
return
0
;
}
}
DBUG_PRINT
(
"info"
,
(
"real table: %s.%s"
,
d_name
,
t_name
));
...
...
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