1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

A fix (bug #3756: ISNULL(QUOTE()) returns 1 for every row after 1st NULL)

This commit is contained in:
unknown
2004-05-17 12:47:16 +05:00
parent 2d743fe227
commit ff23273b7a
3 changed files with 19 additions and 0 deletions

View File

@ -273,3 +273,12 @@ i ELT(j, '345', '34')
1 345
2 34
DROP TABLE t1;
create table t1(a char(4));
insert into t1 values ('one'),(NULL),('two'),('four');
select a, quote(a), isnull(quote(a)), quote(a) is null, ifnull(quote(a), 'n') from t1;
a quote(a) isnull(quote(a)) quote(a) is null ifnull(quote(a), 'n')
one 'one' 0 0 'one'
NULL NULL 1 1 n
two 'two' 0 0 'two'
four 'four' 0 0 'four'
drop table t1;