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
dcf14ed5
Commit
dcf14ed5
authored
Jan 02, 2003
by
peter@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/pz/mysql/mysql-4.1-root
into mysql.com:/home/pz/mysql/mysql-4.1
parents
3b425c8b
945758f0
Changes
4
Hide 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 @
dcf14ed5
...
@@ -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 @
dcf14ed5
...
@@ -552,11 +552,13 @@ class cmp_item_row :public cmp_item
...
@@ -552,11 +552,13 @@ class cmp_item_row :public cmp_item
~
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
);
...
...
sql/item_row.cc
View file @
dcf14ed5
...
@@ -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 @
dcf14ed5
...
@@ -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