Commit 310bb7e2 authored by unknown's avatar unknown

Merge rurik.mysql.com:/home/igor/mysql-4.1

into rurik.mysql.com:/home/igor/dev/mysql-4.1-0


mysql-test/r/subselect.result:
  Auto merged
mysql-test/t/subselect.test:
  Auto merged
parents e6ed39b4 6f0a6260
...@@ -2757,3 +2757,9 @@ one two test ...@@ -2757,3 +2757,9 @@ one two test
5 6 1 5 6 1
7 8 1 7 8 1
DROP TABLE t1,t2; 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;
...@@ -1774,4 +1774,15 @@ SELECT one,two,ROW(one,two) IN (SELECT one,two FROM t2 WHERE flag = 'N' group by ...@@ -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; 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 # End of 4.1 tests
...@@ -1551,6 +1551,8 @@ in_row::~in_row() ...@@ -1551,6 +1551,8 @@ in_row::~in_row()
byte *in_row::get_value(Item *item) byte *in_row::get_value(Item *item)
{ {
tmp.store_value(item); tmp.store_value(item);
if (item->is_null())
return 0;
return (byte *)&tmp; return (byte *)&tmp;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment