diff options
author | unknown <ramil@mysql.com> | 2006-04-25 14:34:19 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2006-04-25 14:34:19 +0500 |
commit | 3ca1852cbaac852f778af0e70278cf3a010f4403 (patch) | |
tree | 452dbe7efd2b3122541222a471a692048acad12c /mysql-test/r/func_time.result | |
parent | 4189bfa421672924b9c8a86571717a78bf32de7a (diff) | |
download | mariadb-git-3ca1852cbaac852f778af0e70278cf3a010f4403.tar.gz |
Fix for bug #18501: Server crashes with monthname().
mysql-test/r/func_time.result:
Fix for bug #18501: Server crashes with monthname().
- test case
mysql-test/t/func_time.test:
Fix for bug #18501: Server crashes with monthname().
- test case
sql/item_timefunc.cc:
Fix for bug #18501: Server crashes with monthname().
- check null_value as well.
Diffstat (limited to 'mysql-test/r/func_time.result')
-rw-r--r-- | mysql-test/r/func_time.result | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/func_time.result b/mysql-test/r/func_time.result index fc872285acb..02f3d2f7273 100644 --- a/mysql-test/r/func_time.result +++ b/mysql-test/r/func_time.result @@ -626,3 +626,7 @@ last_day('2005-01-00') NULL Warnings: Warning 1292 Truncated incorrect datetime value: '2005-01-00' +select monthname(str_to_date(null, '%m')), monthname(str_to_date(null, '%m')), +monthname(str_to_date(1, '%m')), monthname(str_to_date(0, '%m')); +monthname(str_to_date(null, '%m')) monthname(str_to_date(null, '%m')) monthname(str_to_date(1, '%m')) monthname(str_to_date(0, '%m')) +NULL NULL January NULL |