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
659c4778
Commit
659c4778
authored
Oct 09, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge stella.local:/home2/mydev/mysql-5.0-bug15522-old
into stella.local:/home2/mydev/mysql-5.0-bug15522
parents
11f05aa9
0c0042a5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
mysql-test/r/merge.result
mysql-test/r/merge.result
+5
-0
mysql-test/t/merge.test
mysql-test/t/merge.test
+14
-0
No files found.
mysql-test/r/merge.result
View file @
659c4778
...
@@ -876,4 +876,9 @@ CHECK TABLE tm1;
...
@@ -876,4 +876,9 @@ CHECK TABLE tm1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.tm1 check status OK
test.tm1 check status OK
DROP TABLE tm1, t1, t2;
DROP TABLE tm1, t1, t2;
CREATE TABLE t1(c1 INT);
CREATE TABLE t2 (c1 INT) ENGINE=MERGE UNION=(t1) INSERT_METHOD=FIRST;
CREATE TABLE IF NOT EXISTS t1 SELECT * FROM t2;
ERROR HY000: You can't specify target table 't1' for update in FROM clause
DROP TABLE t1, t2;
End of 5.0 tests
End of 5.0 tests
mysql-test/t/merge.test
View file @
659c4778
...
@@ -507,4 +507,18 @@ SELECT * FROM tm1;
...
@@ -507,4 +507,18 @@ SELECT * FROM tm1;
CHECK
TABLE
tm1
;
CHECK
TABLE
tm1
;
DROP
TABLE
tm1
,
t1
,
t2
;
DROP
TABLE
tm1
,
t1
,
t2
;
#
# Bug#15522 - create ... select and with merge tables
#
# This was fixed together with Bug#20662 (Infinite loop in CREATE TABLE
# IF NOT EXISTS ... SELECT with locked tables).
# The new behavior for MERGE tables is consistent with the
# CREATE TABLE SELECT behavior for ordinary tables.
#
CREATE
TABLE
t1
(
c1
INT
);
CREATE
TABLE
t2
(
c1
INT
)
ENGINE
=
MERGE
UNION
=
(
t1
)
INSERT_METHOD
=
FIRST
;
--
error
ER_UPDATE_TABLE_USED
CREATE
TABLE
IF
NOT
EXISTS
t1
SELECT
*
FROM
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
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