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
ad7e09de
Commit
ad7e09de
authored
Apr 01, 2004
by
dlenev@brandersnatch.localdomain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More after-merge fixes for patch fixing bug #2050
parent
f38e0a93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
sql/sql_base.cc
sql/sql_base.cc
+6
-2
No files found.
sql/sql_base.cc
View file @
ad7e09de
...
@@ -2337,10 +2337,12 @@ insert_fields(THD *thd,TABLE_LIST *tables, const char *db_name,
...
@@ -2337,10 +2337,12 @@ insert_fields(THD *thd,TABLE_LIST *tables, const char *db_name,
while
((
field
=
*
ptr
++
))
while
((
field
=
*
ptr
++
))
{
{
uint
not_used_field_index
=
NO_CACHED_FIELD_INDEX
;
/* Skip duplicate field names if NATURAL JOIN is used */
/* Skip duplicate field names if NATURAL JOIN is used */
if
(
!
natural_join_table
||
if
(
!
natural_join_table
||
!
find_field_in_table
(
thd
,
natural_join_table
,
field
->
field_name
,
!
find_field_in_table
(
thd
,
natural_join_table
,
field
->
field_name
,
strlen
(
field
->
field_name
),
0
,
0
))
strlen
(
field
->
field_name
),
0
,
0
,
&
not_used_field_index
))
{
{
Item_field
*
item
=
new
Item_field
(
thd
,
field
);
Item_field
*
item
=
new
Item_field
(
thd
,
field
);
if
(
!
found
++
)
if
(
!
found
++
)
...
@@ -2434,9 +2436,11 @@ int setup_conds(THD *thd,TABLE_LIST *tables,COND **conds)
...
@@ -2434,9 +2436,11 @@ int setup_conds(THD *thd,TABLE_LIST *tables,COND **conds)
for
(
t1_field
=
t1
->
field
;
(
*
t1_field
);
t1_field
++
)
for
(
t1_field
=
t1
->
field
;
(
*
t1_field
);
t1_field
++
)
{
{
const
char
*
t1_field_name
=
(
*
t1_field
)
->
field_name
;
const
char
*
t1_field_name
=
(
*
t1_field
)
->
field_name
;
uint
not_used_field_index
=
NO_CACHED_FIELD_INDEX
;
if
((
t2_field
=
find_field_in_table
(
thd
,
t2
,
t1_field_name
,
if
((
t2_field
=
find_field_in_table
(
thd
,
t2
,
t1_field_name
,
strlen
(
t1_field_name
),
0
,
0
)))
strlen
(
t1_field_name
),
0
,
0
,
&
not_used_field_index
)))
{
{
Item_func_eq
*
tmp
=
new
Item_func_eq
(
new
Item_field
(
*
t1_field
),
Item_func_eq
*
tmp
=
new
Item_func_eq
(
new
Item_field
(
*
t1_field
),
new
Item_field
(
t2_field
));
new
Item_field
(
t2_field
));
...
...
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