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
64678ca5
Commit
64678ca5
authored
Jan 23, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #22990029: Add a test case
parent
aa8a31da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
mysql-test/suite/gcol/r/innodb_virtual_index.result
mysql-test/suite/gcol/r/innodb_virtual_index.result
+23
-0
mysql-test/suite/gcol/t/innodb_virtual_index.test
mysql-test/suite/gcol/t/innodb_virtual_index.test
+18
-0
No files found.
mysql-test/suite/gcol/r/innodb_virtual_index.result
View file @
64678ca5
...
@@ -243,3 +243,26 @@ KEY (a(1))
...
@@ -243,3 +243,26 @@ KEY (a(1))
INSERT INTO t1(b) VALUES(REPEAT('b',1000));
INSERT INTO t1(b) VALUES(REPEAT('b',1000));
DELETE FROM t1;
DELETE FROM t1;
DROP TABLE t1;
DROP TABLE t1;
#
# Bug #22990029 GCOLS: INCORRECT BEHAVIOR
# AFTER DATA INSERTED WITH IGNORE KEYWORD
#
CREATE TABLE t1(a INT PRIMARY KEY, b INT, vb DATE AS(b) VIRTUAL, KEY(vb))
ENGINE=InnoDB;
INSERT IGNORE INTO t1 (a,b) VALUES(1,20190132);
Warnings:
Warning 1265 Data truncated for column 'vb' at row 1
BEGIN;
DELETE FROM t1;
INSERT INTO t1 (a,b) VALUES(1,20190123);
ERROR 22007: Incorrect date value: '20190132' for column `test`.`t1`.`vb` at row 1
SELECT * FROM t1;
a b vb
ROLLBACK;
SELECT * FROM t1;
a b vb
1 20190132 0000-00-00
CHECK TABLE t1;
Table Op Msg_type Msg_text
test.t1 check status OK
DROP TABLE t1;
mysql-test/suite/gcol/t/innodb_virtual_index.test
View file @
64678ca5
...
@@ -263,3 +263,21 @@ CREATE TABLE t1(
...
@@ -263,3 +263,21 @@ CREATE TABLE t1(
INSERT
INTO
t1
(
b
)
VALUES
(
REPEAT
(
'b'
,
1000
));
INSERT
INTO
t1
(
b
)
VALUES
(
REPEAT
(
'b'
,
1000
));
DELETE
FROM
t1
;
DELETE
FROM
t1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug #22990029 GCOLS: INCORRECT BEHAVIOR
--
echo
# AFTER DATA INSERTED WITH IGNORE KEYWORD
--
echo
#
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
INT
,
vb
DATE
AS
(
b
)
VIRTUAL
,
KEY
(
vb
))
ENGINE
=
InnoDB
;
INSERT
IGNORE
INTO
t1
(
a
,
b
)
VALUES
(
1
,
20190132
);
BEGIN
;
DELETE
FROM
t1
;
--
error
ER_TRUNCATED_WRONG_VALUE
INSERT
INTO
t1
(
a
,
b
)
VALUES
(
1
,
20190123
);
SELECT
*
FROM
t1
;
ROLLBACK
;
SELECT
*
FROM
t1
;
CHECK
TABLE
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