Commit e0dbdca7 authored by mskold@mysql.com's avatar mskold@mysql.com

ha_ndbcluster.cc:

  Fixed faulty debug printout
ndb_condition_pushdown.test, ndb_condition_pushdown.result:
  Added BINARY and VARBINARY tests
parent 36449223
...@@ -29,19 +29,19 @@ time_stamp timestamp, ...@@ -29,19 +29,19 @@ time_stamp timestamp,
PRIMARY KEY (auto) PRIMARY KEY (auto)
) engine=ndb; ) engine=ndb;
insert into t1 values insert into t1 values
(NULL,"aaaa","aaaa","aaaa","aaaa",-1,-1,-1,-1,-1,1.1,1.1,1.1,1,1,1,1,1, (NULL,"aaaa","aaaa",0xAAAA,0xAAAA,-1,-1,-1,-1,-1,1.1,1.1,1.1,1,1,1,1,1,
b'001','one','one', b'001','one','one',
'1901-01-01','1901', '1901-01-01','1901',
'01:01:01','1901-01-01 01:01:01',NULL), '01:01:01','1901-01-01 01:01:01',NULL),
(NULL,"bbbb","bbbb","bbbb","bbbb",-2,-2,-2,-2,-2,2.2,2.2,2.2,2,2,2,2,2, (NULL,"bbbb","bbbb",0xBBBB,0xBBBB,-2,-2,-2,-2,-2,2.2,2.2,2.2,2,2,2,2,2,
b'010','two','one,two', b'010','two','one,two',
'1902-02-02','1902', '1902-02-02','1902',
'02:02:02','1902-02-02 02:02:02',NULL), '02:02:02','1902-02-02 02:02:02',NULL),
(NULL,"cccc","cccc","cccc","cccc",-3,-3,-3,-3,-3,3.3,3.3,3.3,3,3,3,3,3, (NULL,"cccc","cccc",0xCCCC,0xCCCC,-3,-3,-3,-3,-3,3.3,3.3,3.3,3,3,3,3,3,
b'011','three','one,two,three', b'011','three','one,two,three',
'1903-03-03','1903', '1903-03-03','1903',
'03:03:03','1903-03-03 03:03:03',NULL), '03:03:03','1903-03-03 03:03:03',NULL),
(NULL,"dddd","dddd","dddd","dddd",-4,-4,-4,-4,-4,4.4,4.4,4.4,4,4,4,4,4, (NULL,"dddd","dddd",0xDDDD,0xDDDD,-4,-4,-4,-4,-4,4.4,4.4,4.4,4,4,4,4,4,
b'100','four','one,two,three,four', b'100','four','one,two,three,four',
'1904-04-04','1904', '1904-04-04','1904',
'04:04:04','1904-04-04 04:04:04',NULL); '04:04:04','1904-04-04 04:04:04',NULL);
...@@ -56,8 +56,8 @@ set engine_condition_pushdown = off; ...@@ -56,8 +56,8 @@ set engine_condition_pushdown = off;
select auto from t1 where select auto from t1 where
string = "aaaa" and string = "aaaa" and
vstring = "aaaa" and vstring = "aaaa" and
bin = "aaaa" and bin = 0xAAAA and
vbin = "aaaa" and vbin = 0xAAAA and
tiny = -1 and tiny = -1 and
short = -1 and short = -1 and
medium = -1 and medium = -1 and
...@@ -84,8 +84,8 @@ auto ...@@ -84,8 +84,8 @@ auto
select auto from t1 where select auto from t1 where
string != "aaaa" and string != "aaaa" and
vstring != "aaaa" and vstring != "aaaa" and
bin != "aaaa" and bin != 0xAAAA and
vbin != "aaaa" and vbin != 0xAAAA and
tiny != -1 and tiny != -1 and
short != -1 and short != -1 and
medium != -1 and medium != -1 and
...@@ -114,8 +114,8 @@ auto ...@@ -114,8 +114,8 @@ auto
select auto from t1 where select auto from t1 where
string > "aaaa" and string > "aaaa" and
vstring > "aaaa" and vstring > "aaaa" and
bin > "aaaa" and bin > 0xAAAA and
vbin > "aaaa" and vbin > 0xAAAA and
tiny < -1 and tiny < -1 and
short < -1 and short < -1 and
medium < -1 and medium < -1 and
...@@ -144,8 +144,8 @@ auto ...@@ -144,8 +144,8 @@ auto
select auto from t1 where select auto from t1 where
string >= "aaaa" and string >= "aaaa" and
vstring >= "aaaa" and vstring >= "aaaa" and
bin >= "aaaa" and bin >= 0xAAAA and
vbin >= "aaaa" and vbin >= 0xAAAA and
tiny <= -1 and tiny <= -1 and
short <= -1 and short <= -1 and
medium <= -1 and medium <= -1 and
...@@ -175,8 +175,8 @@ auto ...@@ -175,8 +175,8 @@ auto
select auto from t1 where select auto from t1 where
string < "dddd" and string < "dddd" and
vstring < "dddd" and vstring < "dddd" and
bin < "dddd" and bin < 0xDDDD and
vbin < "dddd" and vbin < 0xDDDD and
tiny > -4 and tiny > -4 and
short > -4 and short > -4 and
medium > -4 and medium > -4 and
...@@ -205,8 +205,8 @@ auto ...@@ -205,8 +205,8 @@ auto
select auto from t1 where select auto from t1 where
string <= "dddd" and string <= "dddd" and
vstring <= "dddd" and vstring <= "dddd" and
bin <= "dddd" and bin <= 0xDDDD and
vbin <= "dddd" and vbin <= 0xDDDD and
tiny >= -4 and tiny >= -4 and
short >= -4 and short >= -4 and
medium >= -4 and medium >= -4 and
...@@ -235,17 +235,13 @@ auto ...@@ -235,17 +235,13 @@ auto
4 4
select auto from t1 where select auto from t1 where
string like "b%" and string like "b%" and
vstring like "b%" and vstring like "b%"
bin like "b%" and
vbin like "b%"
order by auto; order by auto;
auto auto
2 2
select auto from t1 where select auto from t1 where
string not like "b%" and string not like "b%" and
vstring not like "b%" and vstring not like "b%"
bin not like "b%" and
vbin not like "b%"
order by auto; order by auto;
auto auto
1 1
...@@ -281,8 +277,8 @@ set engine_condition_pushdown = on; ...@@ -281,8 +277,8 @@ set engine_condition_pushdown = on;
select auto from t1 where select auto from t1 where
string = "aaaa" and string = "aaaa" and
vstring = "aaaa" and vstring = "aaaa" and
/* bin = "aaaa" and bin = 0xAAAA and
vbin = "aaaa" and */ vbin = 0xAAAA and
tiny = -1 and tiny = -1 and
short = -1 and short = -1 and
medium = -1 and medium = -1 and
...@@ -309,8 +305,8 @@ auto ...@@ -309,8 +305,8 @@ auto
select auto from t1 where select auto from t1 where
string != "aaaa" and string != "aaaa" and
vstring != "aaaa" and vstring != "aaaa" and
/* bin != "aaaa" and bin != 0xAAAA and
vbin != "aaaa" and */ vbin != 0xAAAA and
tiny != -1 and tiny != -1 and
short != -1 and short != -1 and
medium != -1 and medium != -1 and
...@@ -339,8 +335,8 @@ auto ...@@ -339,8 +335,8 @@ auto
select auto from t1 where select auto from t1 where
string > "aaaa" and string > "aaaa" and
vstring > "aaaa" and vstring > "aaaa" and
/* bin > "aaaa" and bin > 0xAAAA and
vbin > "aaaa" and */ vbin > 0xAAAA and
tiny < -1 and tiny < -1 and
short < -1 and short < -1 and
medium < -1 and medium < -1 and
...@@ -369,8 +365,8 @@ auto ...@@ -369,8 +365,8 @@ auto
select auto from t1 where select auto from t1 where
string >= "aaaa" and string >= "aaaa" and
vstring >= "aaaa" and vstring >= "aaaa" and
/* bin >= "aaaa" and bin >= 0xAAAA and
vbin >= "aaaa" and */ vbin >= 0xAAAA and
tiny <= -1 and tiny <= -1 and
short <= -1 and short <= -1 and
medium <= -1 and medium <= -1 and
...@@ -400,8 +396,8 @@ auto ...@@ -400,8 +396,8 @@ auto
select auto from t1 where select auto from t1 where
string < "dddd" and string < "dddd" and
vstring < "dddd" and vstring < "dddd" and
/* bin < "dddd" and bin < 0xDDDD and
vbin < "dddd" and */ vbin < 0xDDDD and
tiny > -4 and tiny > -4 and
short > -4 and short > -4 and
medium > -4 and medium > -4 and
...@@ -430,8 +426,8 @@ auto ...@@ -430,8 +426,8 @@ auto
select auto from t1 where select auto from t1 where
string <= "dddd" and string <= "dddd" and
vstring <= "dddd" and vstring <= "dddd" and
/* bin <= "dddd" and bin <= 0xDDDD and
vbin <= "dddd" and */ vbin <= 0xDDDD and
tiny >= -4 and tiny >= -4 and
short >= -4 and short >= -4 and
medium >= -4 and medium >= -4 and
...@@ -462,8 +458,8 @@ create index medium_index on t1(medium); ...@@ -462,8 +458,8 @@ create index medium_index on t1(medium);
select auto from t1 where select auto from t1 where
string = "aaaa" and string = "aaaa" and
vstring = "aaaa" and vstring = "aaaa" and
/* bin = "aaaa" and bin = 0xAAAA and
vbin = "aaaa" and */ vbin = 0xAAAA and
tiny = -1 and tiny = -1 and
short = -1 and short = -1 and
medium = -1 and medium = -1 and
...@@ -490,8 +486,8 @@ auto ...@@ -490,8 +486,8 @@ auto
select auto from t1 where select auto from t1 where
string != "aaaa" and string != "aaaa" and
vstring != "aaaa" and vstring != "aaaa" and
/* bin != "aaaa" and bin != 0xAAAA and
vbin != "aaaa" and */ vbin != 0xAAAA and
tiny != -1 and tiny != -1 and
short != -1 and short != -1 and
medium != -1 and medium != -1 and
...@@ -520,8 +516,8 @@ auto ...@@ -520,8 +516,8 @@ auto
select auto from t1 where select auto from t1 where
string > "aaaa" and string > "aaaa" and
vstring > "aaaa" and vstring > "aaaa" and
/* bin > "aaaa" and bin > 0xAAAA and
vbin > "aaaa" and */ vbin > 0xAAAA and
tiny < -1 and tiny < -1 and
short < -1 and short < -1 and
medium < -1 and medium < -1 and
...@@ -550,8 +546,8 @@ auto ...@@ -550,8 +546,8 @@ auto
select auto from t1 where select auto from t1 where
string >= "aaaa" and string >= "aaaa" and
vstring >= "aaaa" and vstring >= "aaaa" and
/* bin >= "aaaa" and bin >= 0xAAAA and
vbin >= "aaaa" and */ vbin >= 0xAAAA and
tiny <= -1 and tiny <= -1 and
short <= -1 and short <= -1 and
medium <= -1 and medium <= -1 and
...@@ -581,8 +577,8 @@ auto ...@@ -581,8 +577,8 @@ auto
select auto from t1 where select auto from t1 where
string < "dddd" and string < "dddd" and
vstring < "dddd" and vstring < "dddd" and
/* bin < "dddd" and bin < 0xDDDD and
vbin < "dddd" and */ vbin < 0xDDDD and
tiny > -4 and tiny > -4 and
short > -4 and short > -4 and
medium > -4 and medium > -4 and
...@@ -611,8 +607,8 @@ auto ...@@ -611,8 +607,8 @@ auto
select auto from t1 where select auto from t1 where
string <= "dddd" and string <= "dddd" and
vstring <= "dddd" and vstring <= "dddd" and
/* bin <= "dddd" and bin <= 0xDDDD and
vbin <= "dddd" and */ vbin <= 0xDDDD and
tiny >= -4 and tiny >= -4 and
short >= -4 and short >= -4 and
medium >= -4 and medium >= -4 and
...@@ -641,17 +637,13 @@ auto ...@@ -641,17 +637,13 @@ auto
4 4
select auto from t1 where select auto from t1 where
string like "b%" and string like "b%" and
vstring like "b%" /* and vstring like "b%"
bin like "b%" and
vbin like "b%" */
order by auto; order by auto;
auto auto
2 2
select auto from t1 where select auto from t1 where
string not like "b%" and string not like "b%" and
vstring not like "b%"/* and vstring not like "b%"
bin not like "b%" and
vbin not like "b%" */
order by auto; order by auto;
auto auto
1 1
......
...@@ -38,19 +38,19 @@ CREATE TABLE t1 ( ...@@ -38,19 +38,19 @@ CREATE TABLE t1 (
) engine=ndb; ) engine=ndb;
insert into t1 values insert into t1 values
(NULL,"aaaa","aaaa","aaaa","aaaa",-1,-1,-1,-1,-1,1.1,1.1,1.1,1,1,1,1,1, (NULL,"aaaa","aaaa",0xAAAA,0xAAAA,-1,-1,-1,-1,-1,1.1,1.1,1.1,1,1,1,1,1,
b'001','one','one', b'001','one','one',
'1901-01-01','1901', '1901-01-01','1901',
'01:01:01','1901-01-01 01:01:01',NULL), '01:01:01','1901-01-01 01:01:01',NULL),
(NULL,"bbbb","bbbb","bbbb","bbbb",-2,-2,-2,-2,-2,2.2,2.2,2.2,2,2,2,2,2, (NULL,"bbbb","bbbb",0xBBBB,0xBBBB,-2,-2,-2,-2,-2,2.2,2.2,2.2,2,2,2,2,2,
b'010','two','one,two', b'010','two','one,two',
'1902-02-02','1902', '1902-02-02','1902',
'02:02:02','1902-02-02 02:02:02',NULL), '02:02:02','1902-02-02 02:02:02',NULL),
(NULL,"cccc","cccc","cccc","cccc",-3,-3,-3,-3,-3,3.3,3.3,3.3,3,3,3,3,3, (NULL,"cccc","cccc",0xCCCC,0xCCCC,-3,-3,-3,-3,-3,3.3,3.3,3.3,3,3,3,3,3,
b'011','three','one,two,three', b'011','three','one,two,three',
'1903-03-03','1903', '1903-03-03','1903',
'03:03:03','1903-03-03 03:03:03',NULL), '03:03:03','1903-03-03 03:03:03',NULL),
(NULL,"dddd","dddd","dddd","dddd",-4,-4,-4,-4,-4,4.4,4.4,4.4,4,4,4,4,4, (NULL,"dddd","dddd",0xDDDD,0xDDDD,-4,-4,-4,-4,-4,4.4,4.4,4.4,4,4,4,4,4,
b'100','four','one,two,three,four', b'100','four','one,two,three,four',
'1904-04-04','1904', '1904-04-04','1904',
'04:04:04','1904-04-04 04:04:04',NULL); '04:04:04','1904-04-04 04:04:04',NULL);
...@@ -74,8 +74,8 @@ set engine_condition_pushdown = off; ...@@ -74,8 +74,8 @@ set engine_condition_pushdown = off;
select auto from t1 where select auto from t1 where
string = "aaaa" and string = "aaaa" and
vstring = "aaaa" and vstring = "aaaa" and
bin = "aaaa" and bin = 0xAAAA and
vbin = "aaaa" and vbin = 0xAAAA and
tiny = -1 and tiny = -1 and
short = -1 and short = -1 and
medium = -1 and medium = -1 and
...@@ -101,8 +101,8 @@ order by auto; ...@@ -101,8 +101,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string != "aaaa" and string != "aaaa" and
vstring != "aaaa" and vstring != "aaaa" and
bin != "aaaa" and bin != 0xAAAA and
vbin != "aaaa" and vbin != 0xAAAA and
tiny != -1 and tiny != -1 and
short != -1 and short != -1 and
medium != -1 and medium != -1 and
...@@ -128,8 +128,8 @@ order by auto; ...@@ -128,8 +128,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string > "aaaa" and string > "aaaa" and
vstring > "aaaa" and vstring > "aaaa" and
bin > "aaaa" and bin > 0xAAAA and
vbin > "aaaa" and vbin > 0xAAAA and
tiny < -1 and tiny < -1 and
short < -1 and short < -1 and
medium < -1 and medium < -1 and
...@@ -155,8 +155,8 @@ order by auto; ...@@ -155,8 +155,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string >= "aaaa" and string >= "aaaa" and
vstring >= "aaaa" and vstring >= "aaaa" and
bin >= "aaaa" and bin >= 0xAAAA and
vbin >= "aaaa" and vbin >= 0xAAAA and
tiny <= -1 and tiny <= -1 and
short <= -1 and short <= -1 and
medium <= -1 and medium <= -1 and
...@@ -182,8 +182,8 @@ order by auto; ...@@ -182,8 +182,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string < "dddd" and string < "dddd" and
vstring < "dddd" and vstring < "dddd" and
bin < "dddd" and bin < 0xDDDD and
vbin < "dddd" and vbin < 0xDDDD and
tiny > -4 and tiny > -4 and
short > -4 and short > -4 and
medium > -4 and medium > -4 and
...@@ -209,8 +209,8 @@ order by auto; ...@@ -209,8 +209,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string <= "dddd" and string <= "dddd" and
vstring <= "dddd" and vstring <= "dddd" and
bin <= "dddd" and bin <= 0xDDDD and
vbin <= "dddd" and vbin <= 0xDDDD and
tiny >= -4 and tiny >= -4 and
short >= -4 and short >= -4 and
medium >= -4 and medium >= -4 and
...@@ -236,16 +236,12 @@ order by auto; ...@@ -236,16 +236,12 @@ order by auto;
# Test LIKE/NOT LIKE # Test LIKE/NOT LIKE
select auto from t1 where select auto from t1 where
string like "b%" and string like "b%" and
vstring like "b%" and vstring like "b%"
bin like "b%" and
vbin like "b%"
order by auto; order by auto;
select auto from t1 where select auto from t1 where
string not like "b%" and string not like "b%" and
vstring not like "b%" and vstring not like "b%"
bin not like "b%" and
vbin not like "b%"
order by auto; order by auto;
# Various tests # Various tests
...@@ -262,8 +258,8 @@ set engine_condition_pushdown = on; ...@@ -262,8 +258,8 @@ set engine_condition_pushdown = on;
select auto from t1 where select auto from t1 where
string = "aaaa" and string = "aaaa" and
vstring = "aaaa" and vstring = "aaaa" and
/* bin = "aaaa" and bin = 0xAAAA and
vbin = "aaaa" and */ vbin = 0xAAAA and
tiny = -1 and tiny = -1 and
short = -1 and short = -1 and
medium = -1 and medium = -1 and
...@@ -289,8 +285,8 @@ order by auto; ...@@ -289,8 +285,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string != "aaaa" and string != "aaaa" and
vstring != "aaaa" and vstring != "aaaa" and
/* bin != "aaaa" and bin != 0xAAAA and
vbin != "aaaa" and */ vbin != 0xAAAA and
tiny != -1 and tiny != -1 and
short != -1 and short != -1 and
medium != -1 and medium != -1 and
...@@ -316,8 +312,8 @@ order by auto; ...@@ -316,8 +312,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string > "aaaa" and string > "aaaa" and
vstring > "aaaa" and vstring > "aaaa" and
/* bin > "aaaa" and bin > 0xAAAA and
vbin > "aaaa" and */ vbin > 0xAAAA and
tiny < -1 and tiny < -1 and
short < -1 and short < -1 and
medium < -1 and medium < -1 and
...@@ -343,8 +339,8 @@ order by auto; ...@@ -343,8 +339,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string >= "aaaa" and string >= "aaaa" and
vstring >= "aaaa" and vstring >= "aaaa" and
/* bin >= "aaaa" and bin >= 0xAAAA and
vbin >= "aaaa" and */ vbin >= 0xAAAA and
tiny <= -1 and tiny <= -1 and
short <= -1 and short <= -1 and
medium <= -1 and medium <= -1 and
...@@ -370,8 +366,8 @@ order by auto; ...@@ -370,8 +366,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string < "dddd" and string < "dddd" and
vstring < "dddd" and vstring < "dddd" and
/* bin < "dddd" and bin < 0xDDDD and
vbin < "dddd" and */ vbin < 0xDDDD and
tiny > -4 and tiny > -4 and
short > -4 and short > -4 and
medium > -4 and medium > -4 and
...@@ -397,8 +393,8 @@ order by auto; ...@@ -397,8 +393,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string <= "dddd" and string <= "dddd" and
vstring <= "dddd" and vstring <= "dddd" and
/* bin <= "dddd" and bin <= 0xDDDD and
vbin <= "dddd" and */ vbin <= 0xDDDD and
tiny >= -4 and tiny >= -4 and
short >= -4 and short >= -4 and
medium >= -4 and medium >= -4 and
...@@ -428,8 +424,8 @@ create index medium_index on t1(medium); ...@@ -428,8 +424,8 @@ create index medium_index on t1(medium);
select auto from t1 where select auto from t1 where
string = "aaaa" and string = "aaaa" and
vstring = "aaaa" and vstring = "aaaa" and
/* bin = "aaaa" and bin = 0xAAAA and
vbin = "aaaa" and */ vbin = 0xAAAA and
tiny = -1 and tiny = -1 and
short = -1 and short = -1 and
medium = -1 and medium = -1 and
...@@ -455,8 +451,8 @@ order by auto; ...@@ -455,8 +451,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string != "aaaa" and string != "aaaa" and
vstring != "aaaa" and vstring != "aaaa" and
/* bin != "aaaa" and bin != 0xAAAA and
vbin != "aaaa" and */ vbin != 0xAAAA and
tiny != -1 and tiny != -1 and
short != -1 and short != -1 and
medium != -1 and medium != -1 and
...@@ -482,8 +478,8 @@ order by auto; ...@@ -482,8 +478,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string > "aaaa" and string > "aaaa" and
vstring > "aaaa" and vstring > "aaaa" and
/* bin > "aaaa" and bin > 0xAAAA and
vbin > "aaaa" and */ vbin > 0xAAAA and
tiny < -1 and tiny < -1 and
short < -1 and short < -1 and
medium < -1 and medium < -1 and
...@@ -509,8 +505,8 @@ order by auto; ...@@ -509,8 +505,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string >= "aaaa" and string >= "aaaa" and
vstring >= "aaaa" and vstring >= "aaaa" and
/* bin >= "aaaa" and bin >= 0xAAAA and
vbin >= "aaaa" and */ vbin >= 0xAAAA and
tiny <= -1 and tiny <= -1 and
short <= -1 and short <= -1 and
medium <= -1 and medium <= -1 and
...@@ -536,8 +532,8 @@ order by auto; ...@@ -536,8 +532,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string < "dddd" and string < "dddd" and
vstring < "dddd" and vstring < "dddd" and
/* bin < "dddd" and bin < 0xDDDD and
vbin < "dddd" and */ vbin < 0xDDDD and
tiny > -4 and tiny > -4 and
short > -4 and short > -4 and
medium > -4 and medium > -4 and
...@@ -563,8 +559,8 @@ order by auto; ...@@ -563,8 +559,8 @@ order by auto;
select auto from t1 where select auto from t1 where
string <= "dddd" and string <= "dddd" and
vstring <= "dddd" and vstring <= "dddd" and
/* bin <= "dddd" and bin <= 0xDDDD and
vbin <= "dddd" and */ vbin <= 0xDDDD and
tiny >= -4 and tiny >= -4 and
short >= -4 and short >= -4 and
medium >= -4 and medium >= -4 and
...@@ -590,16 +586,12 @@ order by auto; ...@@ -590,16 +586,12 @@ order by auto;
# Test LIKE/NOT LIKE # Test LIKE/NOT LIKE
select auto from t1 where select auto from t1 where
string like "b%" and string like "b%" and
vstring like "b%" /* and vstring like "b%"
bin like "b%" and
vbin like "b%" */
order by auto; order by auto;
select auto from t1 where select auto from t1 where
string not like "b%" and string not like "b%" and
vstring not like "b%"/* and vstring not like "b%"
bin not like "b%" and
vbin not like "b%" */
order by auto; order by auto;
# Various tests # Various tests
......
...@@ -5972,9 +5972,8 @@ void ndb_serialize_cond(const Item *item, void *arg) ...@@ -5972,9 +5972,8 @@ void ndb_serialize_cond(const Item *item, void *arg)
if ((field->result_type() == STRING_RESULT) && if ((field->result_type() == STRING_RESULT) &&
!context->expecting_collation(item->collation.collation)) !context->expecting_collation(item->collation.collation))
{ {
DBUG_PRINT("info", ("Found non-matching collations %s and %s", DBUG_PRINT("info", ("Found non-matching collation %s",
item->collation.collation->name, item->collation.collation->name));
context->collation->name));
context->supported= FALSE; context->supported= FALSE;
} }
} }
...@@ -6169,9 +6168,8 @@ void ndb_serialize_cond(const Item *item, void *arg) ...@@ -6169,9 +6168,8 @@ void ndb_serialize_cond(const Item *item, void *arg)
// Check that string result have correct collation // Check that string result have correct collation
if (!context->expecting_collation(item->collation.collation)) if (!context->expecting_collation(item->collation.collation))
{ {
DBUG_PRINT("info", ("Found non-matching collations %s and %s", DBUG_PRINT("info", ("Found non-matching collation %s",
item->collation.collation->name, item->collation.collation->name));
context->collation->name));
context->supported= FALSE; context->supported= FALSE;
} }
} }
...@@ -6291,9 +6289,8 @@ void ndb_serialize_cond(const Item *item, void *arg) ...@@ -6291,9 +6289,8 @@ void ndb_serialize_cond(const Item *item, void *arg)
// Check that we are comparing with a field with same collation // Check that we are comparing with a field with same collation
if (!context->expecting_collation(item->collation.collation)) if (!context->expecting_collation(item->collation.collation))
{ {
DBUG_PRINT("info", ("Found non-matching collations %s and %s", DBUG_PRINT("info", ("Found non-matching collation %s",
item->collation.collation->name, item->collation.collation->name));
context->collation->name));
context->supported= FALSE; context->supported= FALSE;
} }
} }
......
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