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
945758f0
Commit
945758f0
authored
Jan 02, 2003
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-post-review fix (SCRUM)
parent
aedd6004
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
3 deletions
+8
-3
sql/item.cc
sql/item.cc
+3
-2
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+2
-0
sql/item_row.cc
sql/item_row.cc
+2
-0
sql/item_subselect.cc
sql/item_subselect.cc
+1
-1
No files found.
sql/item.cc
View file @
945758f0
...
@@ -1290,9 +1290,10 @@ bool Item_cache_row::setup(Item * item)
...
@@ -1290,9 +1290,10 @@ bool Item_cache_row::setup(Item * item)
for
(
uint
i
=
0
;
i
<
item_count
;
i
++
)
for
(
uint
i
=
0
;
i
<
item_count
;
i
++
)
{
{
Item
*
el
=
item
->
el
(
i
);
Item
*
el
=
item
->
el
(
i
);
if
(
!
(
values
[
i
]
=
Item_cache
::
get_cache
(
el
->
result_type
())))
Item_cache
*
tmp
;
if
(
!
(
tmp
=
values
[
i
]
=
Item_cache
::
get_cache
(
el
->
result_type
())))
return
1
;
return
1
;
values
[
i
]
->
setup
(
el
);
tmp
->
setup
(
el
);
}
}
return
0
;
return
0
;
}
}
...
...
sql/item_cmpfunc.h
View file @
945758f0
...
@@ -552,12 +552,14 @@ public:
...
@@ -552,12 +552,14 @@ public:
~
cmp_item_row
()
~
cmp_item_row
()
{
{
if
(
comparators
)
if
(
comparators
)
{
for
(
uint
i
=
0
;
i
<
n
;
i
++
)
for
(
uint
i
=
0
;
i
<
n
;
i
++
)
{
{
if
(
comparators
[
i
])
if
(
comparators
[
i
])
delete
comparators
[
i
];
delete
comparators
[
i
];
}
}
}
}
}
void
store_value
(
Item
*
item
);
void
store_value
(
Item
*
item
);
int
cmp
(
Item
*
arg
);
int
cmp
(
Item
*
arg
);
int
compare
(
cmp_item
*
arg
);
int
compare
(
cmp_item
*
arg
);
...
...
sql/item_row.cc
View file @
945758f0
...
@@ -55,6 +55,7 @@ bool Item_row::fix_fields(THD *thd, TABLE_LIST *tabl, Item **ref)
...
@@ -55,6 +55,7 @@ bool Item_row::fix_fields(THD *thd, TABLE_LIST *tabl, Item **ref)
return
1
;
return
1
;
used_tables_cache
|=
items
[
i
]
->
used_tables
();
used_tables_cache
|=
items
[
i
]
->
used_tables
();
if
(
const_item_cache
&=
items
[
i
]
->
const_item
()
&&
!
with_null
)
if
(
const_item_cache
&=
items
[
i
]
->
const_item
()
&&
!
with_null
)
{
if
(
items
[
i
]
->
cols
()
>
1
)
if
(
items
[
i
]
->
cols
()
>
1
)
with_null
|=
items
[
i
]
->
null_inside
();
with_null
|=
items
[
i
]
->
null_inside
();
else
else
...
@@ -62,6 +63,7 @@ bool Item_row::fix_fields(THD *thd, TABLE_LIST *tabl, Item **ref)
...
@@ -62,6 +63,7 @@ bool Item_row::fix_fields(THD *thd, TABLE_LIST *tabl, Item **ref)
items
[
i
]
->
val_int
();
items
[
i
]
->
val_int
();
with_null
|=
items
[
i
]
->
null_value
;
with_null
|=
items
[
i
]
->
null_value
;
}
}
}
maybe_null
|=
items
[
i
]
->
maybe_null
;
maybe_null
|=
items
[
i
]
->
maybe_null
;
}
}
return
0
;
return
0
;
...
...
sql/item_subselect.cc
View file @
945758f0
...
@@ -604,7 +604,7 @@ void Item_in_subselect::row_value_transformer(THD *thd,
...
@@ -604,7 +604,7 @@ void Item_in_subselect::row_value_transformer(THD *thd,
}
}
if
(
sl
->
having
||
sl
->
with_sum_func
||
sl
->
group_list
.
first
||
if
(
sl
->
having
||
sl
->
with_sum_func
||
sl
->
group_list
.
first
||
!
sl
->
table_list
.
elements
||
!
sl
->
table_list
.
elements
)
!
sl
->
table_list
.
elements
)
sl
->
having
=
and_items
(
sl
->
having
,
item
);
sl
->
having
=
and_items
(
sl
->
having
,
item
);
else
else
sl
->
where
=
and_items
(
sl
->
where
,
item
);
sl
->
where
=
and_items
(
sl
->
where
,
item
);
...
...
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