summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_str.result
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2005-03-16 17:44:29 +0400
committerunknown <bar@mysql.com>2005-03-16 17:44:29 +0400
commitb3a5e5b1fd80885b0d0763280d259b4c3ae21c2b (patch)
tree8ec389c98bb914b6fa3f8ace1883c627bc4cdc6a /mysql-test/r/func_str.result
parenta5c87958a6ae43bd4b998dd4d54a19043a8e3b0f (diff)
downloadmariadb-git-b3a5e5b1fd80885b0d0763280d259b4c3ae21c2b.tar.gz
Bugs#9129: CHARSET(), COLLATION(), COERCIBILITY()
not always correct for NULL values. Now they always result a non NULL value even the argument is NULL. It is more usefull for debugging purposes. mysql-test/r/func_str.result: Bugs#9129: CHARSET(), COLLATION(), COERCIBILITY() not always correct for NULL values. Also, a mistake in EXPORT_SET was fixed. mysql-test/t/func_str.test: Bugs#9129: CHARSET(), COLLATION(), COERCIBILITY() not always correct for NULL values. sql/item_func.cc: Bugs#9129: CHARSET(), COLLATION(), COERCIBILITY() not always correct for NULL values. sql/item_strfunc.cc: Bugs#9129: CHARSET(), COLLATION(), COERCIBILITY() not always correct for NULL values. A minor mistake in EXPORT_SET() was fixed.
Diffstat (limited to 'mysql-test/r/func_str.result')
-rw-r--r--mysql-test/r/func_str.result11
1 files changed, 10 insertions, 1 deletions
diff --git a/mysql-test/r/func_str.result b/mysql-test/r/func_str.result
index 855473bdc08..ab652b9d850 100644
--- a/mysql-test/r/func_str.result
+++ b/mysql-test/r/func_str.result
@@ -512,7 +512,7 @@ collation(make_set(255,_latin2'a',_latin2'b',_latin2'c')) coercibility(make_set(
latin2_general_ci 4
select collation(export_set(255,_latin2'y',_latin2'n',_latin2' ')), coercibility(export_set(255,_latin2'y',_latin2'n',_latin2' '));
collation(export_set(255,_latin2'y',_latin2'n',_latin2' ')) coercibility(export_set(255,_latin2'y',_latin2'n',_latin2' '))
-binary 4
+latin2_general_ci 4
select collation(trim(_latin2' a ')), coercibility(trim(_latin2' a '));
collation(trim(_latin2' a ')) coercibility(trim(_latin2' a '))
latin2_general_ci 4
@@ -627,6 +627,15 @@ t1 CREATE TABLE `t1` (
`encode('abcd','ab')` binary(4) NOT NULL default ''
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
+create table t1 (a char character set latin2);
+insert into t1 values (null);
+select charset(a), collation(a), coercibility(a) from t1;
+charset(a) collation(a) coercibility(a)
+latin2 latin2_general_ci 2
+drop table t1;
+select charset(null), collation(null), coercibility(null);
+charset(null) collation(null) coercibility(null)
+binary binary 5
select SUBSTR('abcdefg',3,2);
SUBSTR('abcdefg',3,2)
cd