Commit a3ad1765 authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

merge

parents 734ffb84 b48ec20a
...@@ -2026,3 +2026,8 @@ select count(distinct id) from t1 where id in (select id from t2 where match(bod ...@@ -2026,3 +2026,8 @@ select count(distinct id) from t1 where id in (select id from t2 where match(bod
count(distinct id) count(distinct id)
1 1
drop table t2,t1; drop table t2,t1;
create table t1 (s1 int,s2 int);
insert into t1 values (20,15);
select * from t1 where (('a',null) <=> (select 'a',s2 from t1 where s1 = 0));
s1 s2
drop table t1;
...@@ -1328,3 +1328,11 @@ insert into t1 values(1),(2),(3); ...@@ -1328,3 +1328,11 @@ insert into t1 values(1),(2),(3);
insert into t2 values (1,'test'), (2,'mysql'), (3,'test'), (4,'test'); insert into t2 values (1,'test'), (2,'mysql'), (3,'test'), (4,'test');
select count(distinct id) from t1 where id in (select id from t2 where match(body) against ('mysql' in boolean mode)); select count(distinct id) from t1 where id in (select id from t2 where match(body) against ('mysql' in boolean mode));
drop table t2,t1; drop table t2,t1;
#
# Equal operation under row and empty subquery
#
create table t1 (s1 int,s2 int);
insert into t1 values (20,15);
select * from t1 where (('a',null) <=> (select 'a',s2 from t1 where s1 = 0));
drop table t1;
...@@ -1127,7 +1127,7 @@ class Item_cache_int: public Item_cache ...@@ -1127,7 +1127,7 @@ class Item_cache_int: public Item_cache
{ {
longlong value; longlong value;
public: public:
Item_cache_int(): Item_cache() {} Item_cache_int(): Item_cache(), value(0) {}
void store(Item *item); void store(Item *item);
double val() { DBUG_ASSERT(fixed == 1); return (double) value; } double val() { DBUG_ASSERT(fixed == 1); return (double) value; }
...@@ -1145,7 +1145,7 @@ class Item_cache_real: public Item_cache ...@@ -1145,7 +1145,7 @@ class Item_cache_real: public Item_cache
{ {
double value; double value;
public: public:
Item_cache_real(): Item_cache() {} Item_cache_real(): Item_cache(), value(0) {}
void store(Item *item); void store(Item *item);
double val() { DBUG_ASSERT(fixed == 1); return value; } double val() { DBUG_ASSERT(fixed == 1); return value; }
...@@ -1167,7 +1167,7 @@ class Item_cache_str: public Item_cache ...@@ -1167,7 +1167,7 @@ class Item_cache_str: public Item_cache
char buffer[80]; char buffer[80];
String *value, value_buff; String *value, value_buff;
public: public:
Item_cache_str(): Item_cache() { } Item_cache_str(): Item_cache(), value(0) { }
void store(Item *item); void store(Item *item);
double val(); double val();
......
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