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

Fix for bug#10732: Set SQL_MODE to NULL gives garbled error message

generate proper error message if we use SET ... = NULL for 'set'
  variables
This commit is contained in:
unknown
2005-06-09 14:39:29 +05:00
parent 897b3c50e8
commit f160958770
3 changed files with 10 additions and 0 deletions

View File

@ -138,3 +138,5 @@ t1 CREATE TABLE `t1` (
`min_num` decimal(7,6) default '0.000001'
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1 ;
set @@SQL_MODE=NULL;
ERROR 42000: Variable 'sql_mode' can't be set to the value of 'NULL'

View File

@ -80,3 +80,8 @@ create table t1 ( min_num dec(6,6) default .000001);
show create table t1;
drop table t1 ;
#
# Bug #10732: Set SQL_MODE to NULL gives garbled error message
#
--error 1231
set @@SQL_MODE=NULL;