summaryrefslogtreecommitdiff
path: root/mysql-test/r/view.result
diff options
context:
space:
mode:
authorgkodinov/kgeorge@macbook.local <>2007-09-24 10:30:50 +0200
committergkodinov/kgeorge@macbook.local <>2007-09-24 10:30:50 +0200
commiteb0094020788afbf18900fa727a8f858fb586e3a (patch)
tree05ff4af64a4fc7aea69b1d386b670bec494353c6 /mysql-test/r/view.result
parented7e4b82c1e5156bef05b4a800e8fa8ebb8223fc (diff)
parent68e2efcc29309883d8a1df8c59e830195e3fced9 (diff)
downloadmariadb-git-eb0094020788afbf18900fa727a8f858fb586e3a.tar.gz
merge of bug 28701 5.0-opt -> 5.1-opt
Diffstat (limited to 'mysql-test/r/view.result')
-rw-r--r--mysql-test/r/view.result13
1 files changed, 12 insertions, 1 deletions
diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result
index 8a926d44f5f..23a40367cd9 100644
--- a/mysql-test/r/view.result
+++ b/mysql-test/r/view.result
@@ -625,7 +625,7 @@ drop table t1;
create table t1 (a int, b int);
create view v1 as select a, sum(b) from t1 group by a;
select b from v1 use index (some_index) where b=1;
-ERROR 42000: Key 'some_index' doesn't exist in table 'v1'
+ERROR 42000: Incorrect usage of USE INDEX and VIEW
drop view v1;
drop table t1;
create table t1 (col1 char(5),col2 char(5));
@@ -3559,6 +3559,17 @@ table_name is_updatable
v1 NO
drop view v1;
drop table t1;
+CREATE TABLE t1 (a INT);
+INSERT INTO t1 VALUES (1),(2);
+CREATE VIEW v1 AS SELECT * FROM t1;
+SELECT * FROM v1 USE KEY(non_existant);
+ERROR HY000: Incorrect usage of USE INDEX and VIEW
+SELECT * FROM v1 FORCE KEY(non_existant);
+ERROR HY000: Incorrect usage of FORCE INDEX and VIEW
+SELECT * FROM v1 IGNORE KEY(non_existant);
+ERROR HY000: Incorrect usage of IGNORE INDEX and VIEW
+DROP VIEW v1;
+DROP TABLE t1;
End of 5.0 tests.
DROP DATABASE IF EXISTS `d-1`;
CREATE DATABASE `d-1`;