diff options
author | unknown <jimw@mysql.com> | 2005-09-22 11:40:22 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-09-22 11:40:22 -0700 |
commit | 0f0f72c74f87c4cffca23704bd4a94b86b3945af (patch) | |
tree | 7a0080bcde54138749411a1c0af3a6cb0331d762 /mysql-test/r/func_str.result | |
parent | d2fc3bd4245f8c212046e88151da4a66d1b048b3 (diff) | |
download | mariadb-git-0f0f72c74f87c4cffca23704bd4a94b86b3945af.tar.gz |
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().
Diffstat (limited to 'mysql-test/r/func_str.result')
-rw-r--r-- | mysql-test/r/func_str.result | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_str.result b/mysql-test/r/func_str.result index 577f943ebde..3d7d693cdce 100644 --- a/mysql-test/r/func_str.result +++ b/mysql-test/r/func_str.result @@ -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; |