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
2c69c199
Commit
2c69c199
authored
Sep 06, 2005
by
osku@127.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add testcase for bug #12084.
parent
084e37b8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
mysql-test/r/innodb.result
mysql-test/r/innodb.result
+12
-0
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+15
-0
No files found.
mysql-test/r/innodb.result
View file @
2c69c199
...
...
@@ -2527,3 +2527,15 @@ SELECT * FROM t1;
id
1
DROP TABLE t2, t1;
CREATE TABLE t1
(
id INT PRIMARY KEY
)
ENGINE=InnoDB;
CREATE TEMPORARY TABLE t2
(
id INT NOT NULL PRIMARY KEY,
b INT,
FOREIGN KEY (b) REFERENCES test.t1(id)
)
ENGINE=InnoDB;
Got one of the listed errors
DROP TABLE t1;
mysql-test/t/innodb.test
View file @
2c69c199
...
...
@@ -1451,3 +1451,18 @@ TRUNCATE t1;
INSERT
INTO
t1
(
id
)
VALUES
(
NULL
);
SELECT
*
FROM
t1
;
DROP
TABLE
t2
,
t1
;
--
Test
that
foreign
keys
in
temporary
tables
are
not
accepted
(
bug
#12084)
CREATE
TABLE
t1
(
id
INT
PRIMARY
KEY
)
ENGINE
=
InnoDB
;
--
error
1005
,
1005
CREATE
TEMPORARY
TABLE
t2
(
id
INT
NOT
NULL
PRIMARY
KEY
,
b
INT
,
FOREIGN
KEY
(
b
)
REFERENCES
test
.
t1
(
id
)
)
ENGINE
=
InnoDB
;
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