mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/mysql-5.0-bug-11709 mysql-test/r/view.result: Auto merged mysql-test/t/view.test: Auto merged
This commit is contained in:
@ -1953,6 +1953,16 @@ s1 s2
|
||||
DROP PROCEDURE p1;
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1;
|
||||
create table t1 (f1 int, f2 int);
|
||||
create view v1 as select f1 as f3, f2 as f1 from t1;
|
||||
insert into t1 values (1,3),(2,1),(3,2);
|
||||
select * from v1 order by f1;
|
||||
f3 f1
|
||||
2 1
|
||||
3 2
|
||||
1 3
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (f1 char) ENGINE = innodb;
|
||||
INSERT INTO t1 VALUES ('A');
|
||||
CREATE VIEW v1 AS SELECT * FROM t1;
|
||||
|
@ -1792,6 +1792,16 @@ DROP PROCEDURE p1;
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Test for bug #11709 View was ordered by wrong column
|
||||
#
|
||||
create table t1 (f1 int, f2 int);
|
||||
create view v1 as select f1 as f3, f2 as f1 from t1;
|
||||
insert into t1 values (1,3),(2,1),(3,2);
|
||||
select * from v1 order by f1;
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Test for bug #11771: wrong query_id in SELECT * FROM <view>
|
||||
#
|
||||
|
Reference in New Issue
Block a user