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
bca683e8
Commit
bca683e8
authored
Nov 17, 2020
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-24166 : Galera test failure on galera_toi_alter_auto_increment
Add primary key and wait condition.
parent
0bde52e6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/suite/galera/r/galera_toi_alter_auto_increment.result
...est/suite/galera/r/galera_toi_alter_auto_increment.result
+1
-1
mysql-test/suite/galera/t/galera_toi_alter_auto_increment.test
...-test/suite/galera/t/galera_toi_alter_auto_increment.test
+3
-1
No files found.
mysql-test/suite/galera/r/galera_toi_alter_auto_increment.result
View file @
bca683e8
connection node_1;
CREATE TABLE ten (f1 INTEGER) ENGINE=InnoDB;
CREATE TABLE ten (f1 INTEGER
NOT NULL PRIMARY KEY
) ENGINE=InnoDB;
INSERT INTO ten VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
CREATE TABLE t1 (f1 INTEGER AUTO_INCREMENT PRIMARY KEY, f2 INTEGER) ENGINE=InnoDB;
INSERT INTO t1 (f2) SELECT 1 FROM ten;
...
...
mysql-test/suite/galera/t/galera_toi_alter_auto_increment.test
View file @
bca683e8
...
...
@@ -7,7 +7,7 @@
--
source
include
/
have_innodb
.
inc
--
connection
node_1
CREATE
TABLE
ten
(
f1
INTEGER
)
ENGINE
=
InnoDB
;
CREATE
TABLE
ten
(
f1
INTEGER
NOT
NULL
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
INSERT
INTO
ten
VALUES
(
1
),(
2
),(
3
),(
4
),(
5
),(
6
),(
7
),(
8
),(
9
),(
10
);
CREATE
TABLE
t1
(
f1
INTEGER
AUTO_INCREMENT
PRIMARY
KEY
,
f2
INTEGER
)
ENGINE
=
InnoDB
;
...
...
@@ -83,6 +83,8 @@ SET GLOBAL auto_increment_offset = 1;
CREATE
TABLE
t1
(
f1
INTEGER
AUTO_INCREMENT
PRIMARY
KEY
,
f2
INTEGER
)
ENGINE
=
InnoDB
;
--
connection
node_2a
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_NAME
=
't1'
--
source
include
/
wait_condition
.
inc
ALTER
TABLE
t1
AUTO_INCREMENT
=
100
;
...
...
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