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
8f1f869f
Commit
8f1f869f
authored
Apr 20, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another test case for ER_DATA_OUT_OF_RANGE on insert
tests it with a non-const table too
parent
b069d192
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
mysql-test/r/func_math.result
mysql-test/r/func_math.result
+5
-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 @
8f1f869f
...
...
@@ -663,6 +663,11 @@ SELECT -a FROM t1;
ERROR 22003: BIGINT value is out of range in '-(`test`.`t1`.`a`)'
SELECT -b FROM t1;
ERROR 22003: BIGINT value is out of range in '-(`test`.`t1`.`b`)'
INSERT INTO t1 VALUES(0,0);
SELECT -a FROM t1;
ERROR 22003: BIGINT value is out of range in '-(`test`.`t1`.`a`)'
SELECT -b FROM t1;
ERROR 22003: BIGINT value is out of range in '-(`test`.`t1`.`b`)'
DROP TABLE t1;
SET @a:=999999999999999999999999999999999999999999999999999999999999999999999999999999999;
SELECT @a + @a;
...
...
mysql-test/t/func_math.test
View file @
8f1f869f
...
...
@@ -484,6 +484,14 @@ SELECT -a FROM t1;
--
error
ER_DATA_OUT_OF_RANGE
SELECT
-
b
FROM
t1
;
# try with two rows now
INSERT
INTO
t1
VALUES
(
0
,
0
);
--
error
ER_DATA_OUT_OF_RANGE
SELECT
-
a
FROM
t1
;
--
error
ER_DATA_OUT_OF_RANGE
SELECT
-
b
FROM
t1
;
DROP
TABLE
t1
;
# Decimal overflows
...
...
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