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
fb12fc0e
Commit
fb12fc0e
authored
Jan 05, 2011
by
Marc Alff
Browse files
Options
Browse Files
Download
Plain Diff
Local merge
parents
89490b87
44c18a8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
mysql-test/r/auto_increment.result
mysql-test/r/auto_increment.result
+19
-0
mysql-test/t/auto_increment.test
mysql-test/t/auto_increment.test
+17
-0
No files found.
mysql-test/r/auto_increment.result
View file @
fb12fc0e
...
...
@@ -497,3 +497,22 @@ SET @@SESSION.AUTO_INCREMENT_INCREMENT=default;
SET @@SESSION.AUTO_INCREMENT_OFFSET=default;
DROP TABLE t1;
End of 5.1 tests
#
# Bug#50619 assert in handler::update_auto_increment
#
CREATE TABLE t1 (pk INT AUTO_INCREMENT, PRIMARY KEY (pk));
INSERT INTO t1 VALUES (NULL), (-1), (NULL);
SELECT * FROM t1;
pk
-1
1
2
DROP TABLE t1;
CREATE TABLE t1 (pk BIGINT UNSIGNED AUTO_INCREMENT, PRIMARY KEY (pk));
INSERT INTO t1 VALUES (NULL), (18446744073709551615-1), (NULL);
ERROR HY000: Failed to read auto-increment value from storage engine
SELECT * FROM t1;
pk
1
18446744073709551614
DROP TABLE t1;
mysql-test/t/auto_increment.test
View file @
fb12fc0e
...
...
@@ -363,3 +363,20 @@ SET @@SESSION.AUTO_INCREMENT_OFFSET=default;
DROP
TABLE
t1
;
--
echo
End
of
5.1
tests
--
echo
#
--
echo
# Bug#50619 assert in handler::update_auto_increment
--
echo
#
CREATE
TABLE
t1
(
pk
INT
AUTO_INCREMENT
,
PRIMARY
KEY
(
pk
));
# This triggered the assert
INSERT
INTO
t1
VALUES
(
NULL
),
(
-
1
),
(
NULL
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# Check that that true overflow still gives error
CREATE
TABLE
t1
(
pk
BIGINT
UNSIGNED
AUTO_INCREMENT
,
PRIMARY
KEY
(
pk
));
--
error
ER_AUTOINC_READ_FAILED
INSERT
INTO
t1
VALUES
(
NULL
),
(
18446744073709551615
-
1
),
(
NULL
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
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