1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix for bug#6317: string function CHAR, parameter is NULL, wrong result

This commit is contained in:
gluh@gluh.mysql.r18.ru
2005-02-23 18:15:45 +03:00
parent 4996daec19
commit 2b5ee94a33
3 changed files with 14 additions and 0 deletions

View File

@ -733,3 +733,9 @@ WHERE a = CONV('e251273eb74a8ee3', 16, 10);
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 system NULL NULL NULL NULL 1
DROP TABLE t1;
SELECT CHAR(NULL,121,83,81,'76') as my_column;
my_column
ySQL
SELECT CHAR_LENGTH(CHAR(NULL,121,83,81,'76')) as my_column;
my_column
4