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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
767200e6
Commit
767200e6
authored
Sep 12, 2007
by
sunny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for Bug# 21409, the actual bug was fixed in r1334.
parent
444ba771
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
0 deletions
+75
-0
mysql-test/innodb.result
mysql-test/innodb.result
+33
-0
mysql-test/innodb.test
mysql-test/innodb.test
+42
-0
No files found.
mysql-test/innodb.result
View file @
767200e6
...
...
@@ -3223,3 +3223,36 @@ c25 CHAR(255), c26 CHAR(255), c27 CHAR(255), c28 CHAR(255),
c29 CHAR(255), c30 CHAR(255), c31 CHAR(255), c32 CHAR(255)
)
ENGINE = InnoDB;
ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs
SET TX_ISOLATION='read-committed';
SET AUTOCOMMIT=0;
DROP TABLE IF EXISTS t1, t2;
Warnings:
Note 1051 Unknown table 't1'
Note 1051 Unknown table 't2'
CREATE TABLE t1 ( a int ) ENGINE=InnoDB;
CREATE TABLE t2 LIKE t1;
SELECT * FROM t2;
a
SET TX_ISOLATION='read-committed';
SET AUTOCOMMIT=0;
INSERT INTO t1 VALUES (1);
COMMIT;
SELECT * FROM t1 WHERE a=1;
a
1
SET TX_ISOLATION='read-committed';
SET AUTOCOMMIT=0;
SELECT * FROM t2;
a
SET TX_ISOLATION='read-committed';
SET AUTOCOMMIT=0;
INSERT INTO t1 VALUES (2);
COMMIT;
SELECT * FROM t1 WHERE a=2;
a
2
SELECT * FROM t1 WHERE a=2;
a
2
DROP TABLE t1;
DROP TABLE t2;
mysql-test/innodb.test
View file @
767200e6
...
...
@@ -2367,6 +2367,48 @@ CREATE TABLE t1 (
c29
CHAR
(
255
),
c30
CHAR
(
255
),
c31
CHAR
(
255
),
c32
CHAR
(
255
)
)
ENGINE
=
InnoDB
;
#
# Bug #21409 Incorrect result returned when in READ-COMMITTED with
# query_cache ON
#
CONNECT
(
c1
,
localhost
,
root
,,);
CONNECT
(
c2
,
localhost
,
root
,,);
CONNECTION
c1
;
SET
TX_ISOLATION
=
'read-committed'
;
SET
AUTOCOMMIT
=
0
;
DROP
TABLE
IF
EXISTS
t1
,
t2
;
CREATE
TABLE
t1
(
a
int
)
ENGINE
=
InnoDB
;
CREATE
TABLE
t2
LIKE
t1
;
SELECT
*
FROM
t2
;
CONNECTION
c2
;
SET
TX_ISOLATION
=
'read-committed'
;
SET
AUTOCOMMIT
=
0
;
INSERT
INTO
t1
VALUES
(
1
);
COMMIT
;
CONNECTION
c1
;
SELECT
*
FROM
t1
WHERE
a
=
1
;
DISCONNECT
c1
;
DISCONNECT
c2
;
CONNECT
(
c1
,
localhost
,
root
,,);
CONNECT
(
c2
,
localhost
,
root
,,);
CONNECTION
c1
;
SET
TX_ISOLATION
=
'read-committed'
;
SET
AUTOCOMMIT
=
0
;
SELECT
*
FROM
t2
;
CONNECTION
c2
;
SET
TX_ISOLATION
=
'read-committed'
;
SET
AUTOCOMMIT
=
0
;
INSERT
INTO
t1
VALUES
(
2
);
COMMIT
;
CONNECTION
c1
;
# The result set below should be the same for both selects
SELECT
*
FROM
t1
WHERE
a
=
2
;
SELECT
*
FROM
t1
WHERE
a
=
2
;
DROP
TABLE
t1
;
DROP
TABLE
t2
;
DISCONNECT
c1
;
DISCONNECT
c2
;
#######################################################################
# #
# Please, DO NOT TOUCH this file as well as the innodb.result file. #
...
...
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