diff options
author | unknown <kroki/tomash@moonlight.intranet> | 2006-08-29 14:37:52 +0400 |
---|---|---|
committer | unknown <kroki/tomash@moonlight.intranet> | 2006-08-29 14:37:52 +0400 |
commit | b2d1f7a44478ffaa403b95a703f148cb5f559387 (patch) | |
tree | 3f3e6abfa6303da3609492e56a4f916ba1c624b5 /mysql-test/r/view.result | |
parent | 3cd6015c2c6c784fe4d0c1e0b7ee5e056f376f91 (diff) | |
parent | 7a5a2544bf1e1b1abb910968340ad4b9d6162065 (diff) | |
download | mariadb-git-b2d1f7a44478ffaa403b95a703f148cb5f559387.tar.gz |
Merge moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0
into moonlight.intranet:/home/tomash/src/mysql_ab/mysql-5.0-bug17591
mysql-test/r/view.result:
Manual merge.
mysql-test/t/view.test:
Manual merge.
Diffstat (limited to 'mysql-test/r/view.result')
-rw-r--r-- | mysql-test/r/view.result | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index c10f7d49157..a9743e0a47c 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -2849,7 +2849,6 @@ SHOW TABLES; Tables_in_test t1 DROP TABLE t1; -DROP VIEW IF EXISTS v1; DROP TABLE IF EXISTS t1; DROP VIEW IF EXISTS v1; DROP VIEW IF EXISTS v2; @@ -2861,3 +2860,30 @@ CREATE DEFINER=some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890 VIEW v2 AS SELECT b FROM t1; ERROR HY000: String '1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY' is too long for host name (should be no longer than 60) DROP TABLE t1; +DROP FUNCTION IF EXISTS f1; +DROP FUNCTION IF EXISTS f2; +DROP VIEW IF EXISTS v1, v2; +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 (i INT); +CREATE VIEW v1 AS SELECT * FROM t1; +CREATE FUNCTION f1() RETURNS INT +BEGIN +INSERT INTO v1 VALUES (0); +RETURN 0; +END | +SELECT f1(); +f1() +0 +CREATE ALGORITHM=TEMPTABLE VIEW v2 AS SELECT * FROM t1; +CREATE FUNCTION f2() RETURNS INT +BEGIN +INSERT INTO v2 VALUES (0); +RETURN 0; +END | +SELECT f2(); +ERROR HY000: The target table v2 of the INSERT is not updatable +DROP FUNCTION f1; +DROP FUNCTION f2; +DROP VIEW v1, v2; +DROP TABLE t1; +End of 5.0 tests. |