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
dff3f05b
Commit
dff3f05b
authored
Oct 27, 2010
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
5.1-secutity->5.5-security merge(test case only)
parents
7334d96e
5bf148fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/r/func_math.result
mysql-test/r/func_math.result
+12
-0
mysql-test/t/func_math.test
mysql-test/t/func_math.test
+8
-0
No files found.
mysql-test/r/func_math.result
View file @
dff3f05b
...
...
@@ -481,6 +481,18 @@ RAND(i)
0.15522042769493574
DROP TABLE t1;
#
# Bug#57477 SIGFPE when dividing a huge number a negative number
#
SELECT -9999999999999999991 DIV -1;
ERROR 22003: BIGINT value is out of range in '(-(9999999999999999991) DIV -(1))'
SELECT -9223372036854775808 DIV -1;
ERROR 22003: BIGINT value is out of range in '(-(9223372036854775808) DIV -(1))'
SELECT -9223372036854775808 MOD -1;
-9223372036854775808 MOD -1
0
SELECT -9223372036854775808999 MOD -1;
-9223372036854775808999 MOD -1
0
select 123456789012345678901234567890.123456789012345678901234567890 div 1 as x;
ERROR 22003: BIGINT value is out of range in '(123456789012345678901234567890.123456789012345678901234567890 DIV 1)'
select "123456789012345678901234567890.123456789012345678901234567890" div 1 as x;
...
...
mysql-test/t/func_math.test
View file @
dff3f05b
...
...
@@ -316,6 +316,14 @@ SELECT RAND(i) FROM t1;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug#57477 SIGFPE when dividing a huge number a negative number
--
echo
#
--
error
ER_DATA_OUT_OF_RANGE
SELECT
-
9999999999999999991
DIV
-
1
;
--
error
ER_DATA_OUT_OF_RANGE
SELECT
-
9223372036854775808
DIV
-
1
;
SELECT
-
9223372036854775808
MOD
-
1
;
SELECT
-
9223372036854775808999
MOD
-
1
;
#
# Bug #8457: Precision math:
...
...
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