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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e58840fc
Commit
e58840fc
authored
Mar 11, 2009
by
Tatiana A. Nurnberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#40657: assertion with out of range variables and traditional sql_mode
normalize error-messages
parent
cd7d25f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
mysql-test/r/variables.result
mysql-test/r/variables.result
+6
-0
mysql-test/t/variables.test
mysql-test/t/variables.test
+5
-0
sql/set_var.cc
sql/set_var.cc
+3
-2
No files found.
mysql-test/r/variables.result
View file @
e58840fc
...
@@ -1421,6 +1421,12 @@ SELECT @@global.expire_logs_days;
...
@@ -1421,6 +1421,12 @@ SELECT @@global.expire_logs_days;
@@global.expire_logs_days
@@global.expire_logs_days
99
99
SET GLOBAL expire_logs_days = @old_eld;
SET GLOBAL expire_logs_days = @old_eld;
SET GLOBAL auto_increment_offset=-1;
Warnings:
Warning 1292 Truncated incorrect auto_increment_offset value: '-1'
SET GLOBAL auto_increment_offset=0;
Warnings:
Warning 1292 Truncated incorrect auto_increment_offset value: '0'
select @@storage_engine;
select @@storage_engine;
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
def @@storage_engine 253 6 6 N 1 31 8
def @@storage_engine 253 6 6 N 1 31 8
...
...
mysql-test/t/variables.test
View file @
e58840fc
...
@@ -1155,6 +1155,11 @@ SELECT @@global.expire_logs_days;
...
@@ -1155,6 +1155,11 @@ SELECT @@global.expire_logs_days;
# cleanup
# cleanup
SET
GLOBAL
expire_logs_days
=
@
old_eld
;
SET
GLOBAL
expire_logs_days
=
@
old_eld
;
# show that warning uses underscore (sysvar-name), not hyphens (option-name)
SET
GLOBAL
auto_increment_offset
=-
1
;
SET
GLOBAL
auto_increment_offset
=
0
;
#
#
# Bug#41030 Wrong meta data (incorrect fieldlen)
# Bug#41030 Wrong meta data (incorrect fieldlen)
...
...
sql/set_var.cc
View file @
e58840fc
...
@@ -1520,9 +1520,10 @@ static bool get_unsigned(THD *thd, set_var *var, ulonglong user_max,
...
@@ -1520,9 +1520,10 @@ static bool get_unsigned(THD *thd, set_var *var, ulonglong user_max,
var
->
save_result
.
ulonglong_value
=
getopt_ull_limit_value
(
var
->
save_result
.
var
->
save_result
.
ulonglong_value
=
getopt_ull_limit_value
(
var
->
save_result
.
ulonglong_value
,
ulonglong_value
,
limits
,
&
fixed
);
limits
,
&
fixed
);
if
((
warnings
==
0
)
&&
throw_bounds_warning
(
thd
,
fixed
,
TRUE
,
limits
->
name
,
if
((
warnings
==
0
)
&&
throw_bounds_warning
(
thd
,
fixed
,
TRUE
,
var
->
var
->
name
,
(
longlong
)
unadjusted
))
(
longlong
)
unadjusted
))
return
TRUE
;
return
TRUE
;
}
}
...
...
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