diff options
author | igor@rurik.mysql.com <> | 2005-09-08 15:45:31 -0700 |
---|---|---|
committer | igor@rurik.mysql.com <> | 2005-09-08 15:45:31 -0700 |
commit | 6bbdd66e89d2451ca0966f46577a7a7b3c48491a (patch) | |
tree | 26470107142ea65b4924efe53f57d9fd1dad688b /mysql-test/r/olap.result | |
parent | b2f0f9085fcdfc660330cab56c83fde5a6b27e78 (diff) | |
download | mariadb-git-6bbdd66e89d2451ca0966f46577a7a7b3c48491a.tar.gz |
olap.result, olap.test:
Added a test case with VIEW for bug #12885.
Diffstat (limited to 'mysql-test/r/olap.result')
-rw-r--r-- | mysql-test/r/olap.result | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/olap.result b/mysql-test/r/olap.result index b5b43cba3c7..df0ee09ea8e 100644 --- a/mysql-test/r/olap.result +++ b/mysql-test/r/olap.result @@ -602,3 +602,19 @@ id select_type table type possible_keys key key_len ref rows Extra 1 PRIMARY t1 ALL NULL NULL NULL NULL 10 Using filesort DROP VIEW v1; DROP TABLE t1; +CREATE TABLE t1 (a int(11) NOT NULL); +INSERT INTO t1 VALUES (1),(2); +CREATE VIEW v1 AS +SELECT a, LENGTH(a), COUNT(*) FROM t1 GROUP BY a WITH ROLLUP; +DESC v1; +Field Type Null Key Default Extra +a bigint(11) YES NULL +LENGTH(a) bigint(10) YES NULL +COUNT(*) bigint(21) NO 0 +SELECT * FROM v1; +a LENGTH(a) COUNT(*) +1 1 1 +2 1 1 +NULL NULL 2 +DROP VIEW v1; +DROP TABLE t1; |