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

Fix handling of NULL values in decimal fields in FORMAT(). (Bug #13361)

mysql-test/r/func_str.result:
  Add new results
mysql-test/t/func_str.test:
  Add new regression test
sql/item_strfunc.cc:
  Handle NULL decimal fields in FORMAT().
This commit is contained in:
unknown
2005-09-22 11:40:22 -07:00
parent d2fc3bd424
commit 0f0f72c74f
3 changed files with 18 additions and 0 deletions

View File

@ -1011,3 +1011,9 @@ t
1000000
1
drop table t1;
create table t1 (d decimal default null);
insert into t1 values (null);
select format(d, 2) from t1;
format(d, 2)
NULL
drop table t1;