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
2feb13cd
Commit
2feb13cd
authored
May 19, 2011
by
Igor Babaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
579f6443
98f2be08
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
sql/item.cc
sql/item.cc
+1
-1
sql/sql_derived.cc
sql/sql_derived.cc
+1
-2
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
sql/item.cc
View file @
2feb13cd
...
...
@@ -8866,7 +8866,7 @@ inline st_select_lex *Item_ident::get_depended_from() const
{
st_select_lex
*
dep
;
if
((
dep
=
depended_from
))
for
(
;
dep
->
merged_into
;
dep
=
dep
->
merged_into
);
for
(
;
dep
->
merged_into
;
dep
=
dep
->
merged_into
)
;
return
dep
;
}
...
...
sql/sql_derived.cc
View file @
2feb13cd
...
...
@@ -857,14 +857,13 @@ bool mysql_derived_create(THD *thd, LEX *lex, TABLE_LIST *derived)
bool
mysql_derived_fill
(
THD
*
thd
,
LEX
*
lex
,
TABLE_LIST
*
derived
)
{
TABLE
*
table
=
derived
->
table
;
SELECT_LEX_UNIT
*
unit
=
derived
->
get_unit
();
bool
res
=
FALSE
;
if
(
unit
->
executed
&&
!
unit
->
uncacheable
&&
!
unit
->
describe
)
return
FALSE
;
/*check that table creation passed without problems. */
DBUG_ASSERT
(
table
&&
table
->
created
);
DBUG_ASSERT
(
derived
->
table
&&
derived
->
table
->
created
);
SELECT_LEX
*
first_select
=
unit
->
first_select
();
select_union
*
derived_result
=
derived
->
derived_result
;
SELECT_LEX
*
save_current_select
=
lex
->
current_select
;
...
...
sql/sql_select.cc
View file @
2feb13cd
...
...
@@ -12091,7 +12091,7 @@ Field *create_tmp_field(THD *thd, TABLE *table,Item *item, Item::Type type,
(
orig_item
&&
orig_item
->
maybe_null
))
&&
/* for outer joined views/dt*/
!
field
->
field
->
maybe_null
())
{
bool
save_maybe_null
;
bool
save_maybe_null
=
FALSE
;
/*
The item the ref points to may have maybe_null flag set while
the ref doesn't have it. This may happen for outer fields
...
...
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