Commit 98e86c94 authored by ingo@mysql.com's avatar ingo@mysql.com

Merge mysql.com:/home/mydev/mysql-4.1

into mysql.com:/home/mydev/mysql-4.1-wl1687
parents e94cb196 6ad9691d
...@@ -163,6 +163,7 @@ tonu@hundin.mysql.fi ...@@ -163,6 +163,7 @@ tonu@hundin.mysql.fi
tonu@volk.internalnet tonu@volk.internalnet
tonu@x153.internalnet tonu@x153.internalnet
tonu@x3.internalnet tonu@x3.internalnet
tsmith@build.mysql.com
ulli@morbus.(none) ulli@morbus.(none)
venu@hundin.mysql.fi venu@hundin.mysql.fi
venu@myvenu.com venu@myvenu.com
......
...@@ -82,6 +82,13 @@ Field Type Null Key Default Extra ...@@ -82,6 +82,13 @@ Field Type Null Key Default Extra
SET CHARACTER SET koi8r; SET CHARACTER SET koi8r;
DROP TABLE ; DROP TABLE ;
SET CHARACTER SET default; SET CHARACTER SET default;
SET NAMES UTF8;
CREATE TABLE t1 (t text) DEFAULT CHARSET UTF8;
INSERT INTO t1 (t) VALUES ('x');
SELECT 1 FROM t1 WHERE CONCAT(_latin1'x') = t;
1
1
DROP TABLE t1;
SET CHARACTER SET koi8r; SET CHARACTER SET koi8r;
CREATE DATABASE ; CREATE DATABASE ;
USE ; USE ;
......
...@@ -56,6 +56,13 @@ SET CHARACTER SET koi8r; ...@@ -56,6 +56,13 @@ SET CHARACTER SET koi8r;
DROP TABLE ; DROP TABLE ;
SET CHARACTER SET default; SET CHARACTER SET default;
# Test for Item_func_conv_charset::fix_fields (bug #3704)
SET NAMES UTF8;
CREATE TABLE t1 (t text) DEFAULT CHARSET UTF8;
INSERT INTO t1 (t) VALUES ('x');
SELECT 1 FROM t1 WHERE CONCAT(_latin1'x') = t;
DROP TABLE t1;
SET CHARACTER SET koi8r; SET CHARACTER SET koi8r;
CREATE DATABASE ; CREATE DATABASE ;
USE ; USE ;
...@@ -71,4 +78,3 @@ SET NAMES koi8r; ...@@ -71,4 +78,3 @@ SET NAMES koi8r;
SELECT hex(''); SELECT hex('');
SET character_set_connection=cp1251; SET character_set_connection=cp1251;
SELECT hex(''); SELECT hex('');
...@@ -221,6 +221,7 @@ void Item_bool_func2::fix_length_and_dec() ...@@ -221,6 +221,7 @@ void Item_bool_func2::fix_length_and_dec()
{ {
conv= new Item_func_conv_charset(args[weak],args[strong]->collation.collation); conv= new Item_func_conv_charset(args[weak],args[strong]->collation.collation);
conv->collation.set(args[weak]->collation.derivation); conv->collation.set(args[weak]->collation.derivation);
conv->fix_fields(current_thd, 0, &conv);
} }
args[weak]= conv ? conv : args[weak]; args[weak]= conv ? conv : args[weak];
} }
......
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