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
25388380
Commit
25388380
authored
Aug 08, 2005
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge rurik.mysql.com:/home/igor/mysql-4.1
into rurik.mysql.com:/home/igor/dev/mysql-4.1-0
parents
7b1aed3f
73be194f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
mysql-test/r/subselect.result
mysql-test/r/subselect.result
+6
-0
mysql-test/t/subselect.test
mysql-test/t/subselect.test
+11
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+2
-0
No files found.
mysql-test/r/subselect.result
View file @
25388380
...
...
@@ -2757,3 +2757,9 @@ one two test
5 6 1
7 8 1
DROP TABLE t1,t2;
CREATE TABLE t1 (a char(5), b char(5));
INSERT INTO t1 VALUES (NULL,'aaa'), ('aaa','aaa');
SELECT * FROM t1 WHERE (a,b) IN (('aaa','aaa'), ('aaa','bbb'));
a b
aaa aaa
DROP TABLE t1;
mysql-test/t/subselect.test
View file @
25388380
...
...
@@ -1774,4 +1774,15 @@ SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N' group by
DROP
TABLE
t1
,
t2
;
#
# Bug #12392: where cond with IN predicate for rows and NULL values in table
#
CREATE
TABLE
t1
(
a
char
(
5
),
b
char
(
5
));
INSERT
INTO
t1
VALUES
(
NULL
,
'aaa'
),
(
'aaa'
,
'aaa'
);
SELECT
*
FROM
t1
WHERE
(
a
,
b
)
IN
((
'aaa'
,
'aaa'
),
(
'aaa'
,
'bbb'
));
DROP
TABLE
t1
;
# End of 4.1 tests
sql/item_cmpfunc.cc
View file @
25388380
...
...
@@ -1551,6 +1551,8 @@ in_row::~in_row()
byte
*
in_row
::
get_value
(
Item
*
item
)
{
tmp
.
store_value
(
item
);
if
(
item
->
is_null
())
return
0
;
return
(
byte
*
)
&
tmp
;
}
...
...
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