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
bc2030ed
Commit
bc2030ed
authored
Jan 21, 2010
by
sunny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/5.1: Factor out test for bug#44030 from innodb-autoinc.test
into a separate test/result files.
parent
70ef58ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
55 deletions
+0
-55
mysql-test/innodb-autoinc.result
mysql-test/innodb-autoinc.result
+0
-29
mysql-test/innodb-autoinc.test
mysql-test/innodb-autoinc.test
+0
-26
No files found.
mysql-test/innodb-autoinc.result
View file @
bc2030ed
...
...
@@ -868,35 +868,6 @@ Got one of the listed errors
DROP TABLE t1;
DROP TABLE t2;
SET @@SESSION.AUTO_INCREMENT_INCREMENT=1, @@SESSION.AUTO_INCREMENT_OFFSET=1;
CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB;
INSERT INTO t1 VALUES (null);
INSERT INTO t1 VALUES (null);
ALTER TABLE t1 CHANGE c1 d1 INT NOT NULL AUTO_INCREMENT;
SELECT * FROM t1;
d1
1
2
SELECT * FROM t1;
d1
1
2
INSERT INTO t1 VALUES(null);
Got one of the listed errors
ALTER TABLE t1 AUTO_INCREMENT = 3;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`d1` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`d1`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1
INSERT INTO t1 VALUES(null);
SELECT * FROM t1;
d1
1
2
3
DROP TABLE t1;
SET @@SESSION.AUTO_INCREMENT_INCREMENT=1, @@SESSION.AUTO_INCREMENT_OFFSET=1;
SHOW VARIABLES LIKE "%auto_inc%";
Variable_name Value
auto_increment_increment 1
...
...
mysql-test/innodb-autoinc.test
View file @
bc2030ed
...
...
@@ -478,32 +478,6 @@ INSERT INTO t2 SELECT c1 FROM t1;
INSERT
INTO
t2
SELECT
NULL
FROM
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t2
;
#
# 44030: Error: (1500) Couldn't read the MAX(ID) autoinc value from
# the index (PRIMARY)
# This test requires a restart of the server
SET
@@
SESSION
.
AUTO_INCREMENT_INCREMENT
=
1
,
@@
SESSION
.
AUTO_INCREMENT_OFFSET
=
1
;
CREATE
TABLE
t1
(
c1
INT
PRIMARY
KEY
AUTO_INCREMENT
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
null
);
INSERT
INTO
t1
VALUES
(
null
);
ALTER
TABLE
t1
CHANGE
c1
d1
INT
NOT
NULL
AUTO_INCREMENT
;
SELECT
*
FROM
t1
;
# Restart the server
--
source
include
/
restart_mysqld
.
inc
# The MySQL and InnoDB data dictionaries should now be out of sync.
# The select should print message to the error log
SELECT
*
FROM
t1
;
# MySQL have made a change (http://lists.mysql.com/commits/75268) that no
# longer results in the two data dictionaries being out of sync. If they
# revert their changes then this check for ER_AUTOINC_READ_FAILED will need
# to be enabled.
--
error
ER_AUTOINC_READ_FAILED
,
1467
INSERT
INTO
t1
VALUES
(
null
);
ALTER
TABLE
t1
AUTO_INCREMENT
=
3
;
SHOW
CREATE
TABLE
t1
;
INSERT
INTO
t1
VALUES
(
null
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
# If the user has specified negative values for an AUTOINC column then
# InnoDB should ignore those values when setting the table's max value.
...
...
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