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
e1ed1612
Commit
e1ed1612
authored
Aug 31, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merge 5.0-main -> 5.0-bugteam
parents
a22c29d5
3bed8a17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
145 deletions
+2
-145
man/Makefile.am
man/Makefile.am
+2
-2
mysql-test/r/view.result
mysql-test/r/view.result
+0
-111
mysql-test/t/view.test
mysql-test/t/view.test
+0
-32
No files found.
man/Makefile.am
View file @
e1ed1612
...
...
@@ -24,8 +24,8 @@ EXTRA_DIST = $(man1_MANS) $(man8_MANS)
# 1) not needed in Unix binary packages,
# 2) programs not generated in 5.0:
install-data-hook
:
rm
-f
$(DESTDIR)$(man
lib
dir)
/man1/make_win_
*
rm
-f
$(DESTDIR)$(man
lib
dir)
/man1/ndb_print_
*
rm
-f
$(DESTDIR)$(mandir)
/man1/make_win_
*
rm
-f
$(DESTDIR)$(mandir)
/man1/ndb_print_
*
# Don't update the files from bitkeeper
%
::
SCCS/s.%
mysql-test/r/view.result
View file @
e1ed1612
...
...
@@ -3704,117 +3704,6 @@ SELECT * FROM v1 IGNORE INDEX (c2) WHERE c2=2;
ERROR HY000: Key 'c2' doesn't exist in table 'v1'
DROP VIEW v1;
DROP TABLE t1;
#
# Bug #45806 crash when replacing into a view with a join!
#
CREATE TABLE t1(a INT UNIQUE);
CREATE VIEW v1 AS SELECT t1.a FROM t1, t1 AS a;
INSERT INTO t1 VALUES (1), (2);
REPLACE INTO v1(a) SELECT 1 FROM t1,t1 AS c;
SELECT * FROM v1;
a
1
2
1
2
REPLACE INTO v1(a) SELECT 3 FROM t1,t1 AS c;
SELECT * FROM v1;
a
1
2
3
1
2
3
1
2
3
DELETE FROM t1 WHERE a=3;
INSERT INTO v1(a) SELECT 1 FROM t1,t1 AS c
ON DUPLICATE KEY UPDATE `v1`.`a`= 1;
SELECT * FROM v1;
a
1
2
1
2
CREATE VIEW v2 AS SELECT t1.a FROM t1, v1 AS a;
REPLACE INTO v2(a) SELECT 1 FROM t1,t1 AS c;
SELECT * FROM v2;
a
1
2
1
2
1
2
1
2
REPLACE INTO v2(a) SELECT 3 FROM t1,t1 AS c;
SELECT * FROM v2;
a
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
INSERT INTO v2(a) SELECT 1 FROM t1,t1 AS c
ON DUPLICATE KEY UPDATE `v2`.`a`= 1;
SELECT * FROM v2;
a
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
DROP VIEW v1;
DROP VIEW v2;
DROP TABLE t1;
# -- End of test case for Bug#45806
# -----------------------------------------------------------------
# -- Bug#40825: Error 1356 while selecting from a view
# -- with a "HAVING" clause though query works
...
...
mysql-test/t/view.test
View file @
e1ed1612
...
...
@@ -3680,38 +3680,6 @@ SELECT * FROM v1 IGNORE INDEX (c2) WHERE c2=2;
DROP
VIEW
v1
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# Bug #45806 crash when replacing into a view with a join!
--
echo
#
CREATE
TABLE
t1
(
a
INT
UNIQUE
);
CREATE
VIEW
v1
AS
SELECT
t1
.
a
FROM
t1
,
t1
AS
a
;
INSERT
INTO
t1
VALUES
(
1
),
(
2
);
REPLACE
INTO
v1
(
a
)
SELECT
1
FROM
t1
,
t1
AS
c
;
SELECT
*
FROM
v1
;
REPLACE
INTO
v1
(
a
)
SELECT
3
FROM
t1
,
t1
AS
c
;
SELECT
*
FROM
v1
;
DELETE
FROM
t1
WHERE
a
=
3
;
INSERT
INTO
v1
(
a
)
SELECT
1
FROM
t1
,
t1
AS
c
ON
DUPLICATE
KEY
UPDATE
`v1`
.
`a`
=
1
;
SELECT
*
FROM
v1
;
CREATE
VIEW
v2
AS
SELECT
t1
.
a
FROM
t1
,
v1
AS
a
;
REPLACE
INTO
v2
(
a
)
SELECT
1
FROM
t1
,
t1
AS
c
;
SELECT
*
FROM
v2
;
REPLACE
INTO
v2
(
a
)
SELECT
3
FROM
t1
,
t1
AS
c
;
SELECT
*
FROM
v2
;
INSERT
INTO
v2
(
a
)
SELECT
1
FROM
t1
,
t1
AS
c
ON
DUPLICATE
KEY
UPDATE
`v2`
.
`a`
=
1
;
SELECT
*
FROM
v2
;
DROP
VIEW
v1
;
DROP
VIEW
v2
;
DROP
TABLE
t1
;
--
echo
# -- End of test case for Bug#45806
--
echo
# -----------------------------------------------------------------
--
echo
# -- Bug#40825: Error 1356 while selecting from a view
--
echo
# -- with a "HAVING" clause though query works
...
...
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