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
aecc95a1
Commit
aecc95a1
authored
Dec 03, 2016
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MariaRocks port: fix rocksdb.autoinc_vars
parent
044ad5d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
storage/rocksdb/mysql-test/rocksdb/r/autoinc_vars.result
storage/rocksdb/mysql-test/rocksdb/r/autoinc_vars.result
+3
-4
storage/rocksdb/mysql-test/rocksdb/t/autoinc_vars.test
storage/rocksdb/mysql-test/rocksdb/t/autoinc_vars.test
+2
-0
No files found.
storage/rocksdb/mysql-test/rocksdb/r/autoinc_vars.result
View file @
aecc95a1
...
...
@@ -52,13 +52,12 @@ DROP TABLE t1;
SET auto_increment_increment = 500;
SET auto_increment_offset = 300;
CREATE TABLE t1 (a TINYINT AUTO_INCREMENT PRIMARY KEY) ENGINE=rocksdb;
# In MariaDB, this is an error:
INSERT INTO t1 (a) VALUES (NULL);
Warnings:
Warning 1264 Out of range value for column 'a' at row 1
ERROR 22003: Out of range value for column 'a' at row 1
SELECT LAST_INSERT_ID();
LAST_INSERT_ID()
127
850
SELECT a FROM t1 ORDER BY a;
a
127
DROP TABLE t1;
storage/rocksdb/mysql-test/rocksdb/t/autoinc_vars.test
View file @
aecc95a1
...
...
@@ -57,6 +57,8 @@ SET auto_increment_increment = 500;
SET
auto_increment_offset
=
300
;
CREATE
TABLE
t1
(
a
TINYINT
AUTO_INCREMENT
PRIMARY
KEY
)
ENGINE
=
rocksdb
;
--
echo
# In MariaDB, this is an error:
--
error
HA_ERR_AUTOINC_ERANGE
INSERT
INTO
t1
(
a
)
VALUES
(
NULL
);
SELECT
LAST_INSERT_ID
();
SELECT
a
FROM
t1
ORDER
BY
a
;
...
...
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