diff options
author | Igor Babaev <igor@askmonty.org> | 2011-06-03 21:44:37 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-06-03 21:44:37 -0700 |
commit | 35c35858f859f23c23a414cdb21fdfe39d5de11c (patch) | |
tree | a4fab4e0c5cd29a8db2ed55e26436ab3bb1e1a41 /mysql-test/suite/funcs_1 | |
parent | dd3b27834c271e9561fcde4658ce758c30c69334 (diff) | |
download | mariadb-git-35c35858f859f23c23a414cdb21fdfe39d5de11c.tar.gz |
Fixed bugs causing failures fot the funcs_1 test suite.
Uncommented the failing test cases.
Commented out the failing test case from parts.partition_repair_myisam.test.
The test case has to be changed to bear the same semantics as before mwl106.
Diffstat (limited to 'mysql-test/suite/funcs_1')
-rw-r--r-- | mysql-test/suite/funcs_1/r/innodb_views.result | 36 | ||||
-rw-r--r-- | mysql-test/suite/funcs_1/r/memory_views.result | 36 | ||||
-rw-r--r-- | mysql-test/suite/funcs_1/views/views_master.inc | 10 |
3 files changed, 76 insertions, 6 deletions
diff --git a/mysql-test/suite/funcs_1/r/innodb_views.result b/mysql-test/suite/funcs_1/r/innodb_views.result index 601d59f9b90..a335e135a4f 100644 --- a/mysql-test/suite/funcs_1/r/innodb_views.result +++ b/mysql-test/suite/funcs_1/r/innodb_views.result @@ -22339,38 +22339,74 @@ SET @variant9= 'CREATE ALGORITHM = TEMPTABLE VIEW v1 (f61) AS select f60 from t1 CREATE ALGORITHM = TEMPTABLE VIEW v1 (f61) AS select f60 from t1; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT f59 AS f61 FROM t1 WHERE f60 IN (SELECT f59 FROM t1); INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT f61 FROM v2; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT (SELECT f60 FROM t2 WHERE f59=19) AS f61 FROM t1; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT f61 FROM t1 HAVING f61 > 0; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT f61 FROM t1 GROUP BY f61; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT SUM(f59) AS f61 FROM t1; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT DISTINCTROW(f61) FROM t1; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT DISTINCT(f61) FROM t1; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; Drop TABLE t1, t2 ; Drop VIEW v2 ; diff --git a/mysql-test/suite/funcs_1/r/memory_views.result b/mysql-test/suite/funcs_1/r/memory_views.result index 8f96897b51e..ccbd086b71f 100644 --- a/mysql-test/suite/funcs_1/r/memory_views.result +++ b/mysql-test/suite/funcs_1/r/memory_views.result @@ -22341,38 +22341,74 @@ SET @variant9= 'CREATE ALGORITHM = TEMPTABLE VIEW v1 (f61) AS select f60 from t1 CREATE ALGORITHM = TEMPTABLE VIEW v1 (f61) AS select f60 from t1; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT f59 AS f61 FROM t1 WHERE f60 IN (SELECT f59 FROM t1); INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT f61 FROM v2; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT (SELECT f60 FROM t2 WHERE f59=19) AS f61 FROM t1; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT f61 FROM t1 HAVING f61 > 0; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT f61 FROM t1 GROUP BY f61; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT SUM(f59) AS f61 FROM t1; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT DISTINCTROW(f61) FROM t1; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; CREATE VIEW v1 AS SELECT DISTINCT(f61) FROM t1; INSERT INTO v1 VALUES (1002); ERROR HY000: The target table v1 of the INSERT is not insertable-into +UPDATE v1 SET f61=1007; +ERROR HY000: The target table v1 of the UPDATE is not updatable +DELETE FROM v1; +ERROR HY000: The target table v1 of the DELETE is not updatable DROP VIEW v1; Drop TABLE t1, t2 ; Drop VIEW v2 ; diff --git a/mysql-test/suite/funcs_1/views/views_master.inc b/mysql-test/suite/funcs_1/views/views_master.inc index ca0b7814068..5ab8d52629c 100644 --- a/mysql-test/suite/funcs_1/views/views_master.inc +++ b/mysql-test/suite/funcs_1/views/views_master.inc @@ -3831,12 +3831,10 @@ while ($num) INSERT INTO v1 VALUES (1002); # --error ER_NON_UPDATABLE_TABLE, ER_UPDATE_TABLE_USED -# !!! This queriesreturn wrong errors due to a bug in the code of mwl106 -# !!! Uncomment them when the bug is fixed -# --error ER_NON_UPDATABLE_TABLE -# UPDATE v1 SET f61=1007; -# --error ER_NON_UPDATABLE_TABLE -# DELETE FROM v1; + --error ER_NON_UPDATABLE_TABLE + UPDATE v1 SET f61=1007; + --error ER_NON_UPDATABLE_TABLE + DELETE FROM v1; DROP VIEW v1; dec $num; } |