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
bbc8f836
Commit
bbc8f836
authored
Mar 10, 2003
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for a bug with ROW(..) <=> ROW(...)
parent
462a72b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
mysql-test/r/row.result
mysql-test/r/row.result
+6
-0
mysql-test/t/row.test
mysql-test/t/row.test
+2
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+2
-3
No files found.
mysql-test/r/row.result
View file @
bbc8f836
...
...
@@ -159,3 +159,9 @@ a MAX(b) (1, MAX(b)) = (1, 4)
1 4 1
10 43 0
drop table t1;
SELECT ROW(2,10) <=> ROW(3,4);
ROW(2,10) <=> ROW(3,4)
0
SELECT ROW(NULL,10) <=> ROW(3,NULL);
ROW(NULL,10) <=> ROW(3,NULL)
0
mysql-test/t/row.test
View file @
bbc8f836
...
...
@@ -79,3 +79,5 @@ insert into t1 values (10, 43);
insert
into
t1
values
(
1
,
4
);
select
a
,
MAX
(
b
),
(
1
,
MAX
(
b
))
=
(
1
,
4
)
from
t1
group
by
a
;
drop
table
t1
;
SELECT
ROW
(
2
,
10
)
<=>
ROW
(
3
,
4
);
SELECT
ROW
(
NULL
,
10
)
<=>
ROW
(
3
,
NULL
);
sql/item_cmpfunc.cc
View file @
bbc8f836
...
...
@@ -266,8 +266,8 @@ int Arg_comparator::compare_e_row()
uint
n
=
(
*
a
)
->
cols
();
for
(
uint
i
=
0
;
i
<
n
;
i
++
)
{
if
((
res
=
comparators
[
i
].
compare
()))
return
1
;
if
((
res
=
!
comparators
[
i
].
compare
()))
return
0
;
}
return
1
;
}
...
...
@@ -352,7 +352,6 @@ void Item_func_equal::fix_length_and_dec()
{
Item_bool_func2
::
fix_length_and_dec
();
maybe_null
=
null_value
=
0
;
set_cmp_func
();
}
longlong
Item_func_equal
::
val_int
()
...
...
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