Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f183ee49
Commit
f183ee49
authored
Jun 09, 2005
by
gluh@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/gluh/MySQL/Merge/4.1
parents
7d5960a5
8574ed6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
mysql-test/r/sql_mode.result
mysql-test/r/sql_mode.result
+2
-0
mysql-test/t/sql_mode.test
mysql-test/t/sql_mode.test
+5
-0
sql/set_var.cc
sql/set_var.cc
+3
-0
No files found.
mysql-test/r/sql_mode.result
View file @
f183ee49
...
...
@@ -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'
mysql-test/t/sql_mode.test
View file @
f183ee49
...
...
@@ -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
;
sql/set_var.cc
View file @
f183ee49
...
...
@@ -1515,7 +1515,10 @@ bool sys_var::check_set(THD *thd, set_var *var, TYPELIB *enum_names)
if
(
var
->
value
->
result_type
()
==
STRING_RESULT
)
{
if
(
!
(
res
=
var
->
value
->
val_str
(
&
str
)))
{
strmake
(
buff
,
"NULL"
,
4
);
goto
err
;
}
var
->
save_result
.
ulong_value
=
((
ulong
)
find_set
(
enum_names
,
res
->
c_ptr
(),
res
->
length
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment