Below is the list of changes that have just been committed into a local
5.1 repository of igor. When igor does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-05-31 00:04:03-07:00, igor@stripped +2 -0
Post merge fix.
mysql-test/r/view.result@stripped, 2007-05-31 00:03:57-07:00, igor@stripped +10 -0
Post merge fix.
mysql-test/t/view.test@stripped, 2007-05-31 00:03:58-07:00, igor@stripped +19 -0
Post merge fix.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: igor
# Host: olga.mysql.com
# Root: /home/igor/mysql-5.1-opt
--- 1.227/mysql-test/r/view.result 2007-05-31 00:04:09 -07:00
+++ 1.228/mysql-test/r/view.result 2007-05-31 00:04:09 -07:00
@@ -3369,6 +3369,16 @@
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1`
AS select cast(1.23456789 as decimal(8,0)) AS `col`
DROP VIEW v1;
+CREATE TABLE t1 (id int);
+CREATE TABLE t2 (id int, c int DEFAULT 0);
+INSERT INTO t1 (id) VALUES (1);
+INSERT INTO t2 (id) VALUES (1);
+CREATE VIEW v1 AS
+SELECT t2.c FROM t1, t2
+WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
+UPDATE v1 SET c=1;
+DROP VIEW v1;
+DROP TABLE t1,t2;
End of 5.0 tests.
DROP DATABASE IF EXISTS `d-1`;
CREATE DATABASE `d-1`;
--- 1.199/mysql-test/t/view.test 2007-05-31 00:04:09 -07:00
+++ 1.200/mysql-test/t/view.test 2007-05-31 00:04:09 -07:00
@@ -3244,6 +3244,25 @@
SHOW CREATE VIEW v1;
DROP VIEW v1;
+#
+# Bug #28561: update on multi-table view with CHECK OPTION and
+# a subquery in WHERE condition
+#
+
+CREATE TABLE t1 (id int);
+CREATE TABLE t2 (id int, c int DEFAULT 0);
+INSERT INTO t1 (id) VALUES (1);
+INSERT INTO t2 (id) VALUES (1);
+
+CREATE VIEW v1 AS
+ SELECT t2.c FROM t1, t2
+ WHERE t1.id=t2.id AND 1 IN (SELECT id FROM t1) WITH CHECK OPTION;
+
+UPDATE v1 SET c=1;
+
+DROP VIEW v1;
+DROP TABLE t1,t2;
+
--echo End of 5.0 tests.
#
| Thread |
|---|
| • bk commit into 5.1 tree (igor:1.2521) | igor | 31 May |