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
5818c861
Commit
5818c861
authored
Nov 11, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-merge fixes for WL#1972
sql/item.cc: post-merge fixes sql/sql_select.cc: post-merge fixes
parent
73c12a5c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
sql/item.cc
sql/item.cc
+2
-3
sql/sql_select.cc
sql/sql_select.cc
+2
-2
No files found.
sql/item.cc
View file @
5818c861
...
...
@@ -1911,8 +1911,7 @@ bool Item_field::fix_fields(THD *thd, TABLE_LIST *tables, Item **reference)
/* Should have been checked in resolve_ref_in_select_and_group(). */
DBUG_ASSERT
(
*
ref
&&
(
*
ref
)
->
fixed
);
Item_ref
*
rf
=
new
Item_ref
(
last
->
ref_pointer_array
+
counter
,
(
char
*
)
table_name
,
(
char
*
)
field_name
);
Item_ref
*
rf
=
new
Item_ref
(
ref
,
(
char
*
)
table_name
,
(
char
*
)
field_name
);
if
(
!
rf
)
return
TRUE
;
thd
->
change_item_tree
(
reference
,
rf
);
...
...
@@ -2864,7 +2863,7 @@ bool Item_ref::fix_fields(THD *thd, TABLE_LIST *tables, Item **reference)
if
(
from_field
!=
view_ref_found
)
{
Item_field
*
fld
;
if
(
!
(
fld
=
new
Item_field
(
tmp
)))
if
(
!
(
fld
=
new
Item_field
(
from_field
)))
return
TRUE
;
thd
->
change_item_tree
(
reference
,
fld
);
mark_as_dependent
(
thd
,
last
,
thd
->
lex
->
current_select
,
fld
);
...
...
sql/sql_select.cc
View file @
5818c861
...
...
@@ -11288,8 +11288,8 @@ find_order_in_list(THD *thd, Item **ref_pointer_array, TABLE_LIST *tables,
thd
->
is_fatal_error
))
return
1
;
// Wrong field
uint
el
=
all_fields
.
elements
;
all_fields
.
push_front
(
it
);
// Add new field to field list
ref_pointer_array
[
el
]
=
it
;
all_fields
.
push_front
(
order_item
);
// Add new field to field list
ref_pointer_array
[
el
]
=
order_item
;
order
->
item
=
ref_pointer_array
+
el
;
return
0
;
}
...
...
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