summaryrefslogtreecommitdiff
path: root/repl-tests
diff options
context:
space:
mode:
Diffstat (limited to 'repl-tests')
-rwxr-xr-xrepl-tests/test-auto-inc/run.test10
-rw-r--r--repl-tests/test-auto-inc/x.master4
2 files changed, 14 insertions, 0 deletions
diff --git a/repl-tests/test-auto-inc/run.test b/repl-tests/test-auto-inc/run.test
new file mode 100755
index 00000000000..8405329f458
--- /dev/null
+++ b/repl-tests/test-auto-inc/run.test
@@ -0,0 +1,10 @@
+source ../include/master-slave.inc;
+connection master;
+drop table if exists x;
+create table x(n int auto_increment primary key);
+set insert_id = 2000;
+insert into x values (NULL),(NULL),(NULL);
+connection slave;
+sleep 3;
+@x.master select * from x;
+
diff --git a/repl-tests/test-auto-inc/x.master b/repl-tests/test-auto-inc/x.master
new file mode 100644
index 00000000000..c76fc46ae97
--- /dev/null
+++ b/repl-tests/test-auto-inc/x.master
@@ -0,0 +1,4 @@
+n
+2000
+2001
+2002