mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge lmy004.:/work/mysql-5.0-clean
into lmy004.:/work/mysql-5.0-bug12533-2 mysql-test/r/view.result: Auto merged sql/sql_show.cc: Auto merged
This commit is contained in:
@ -2115,3 +2115,15 @@ CREATE VIEW v1 AS SELECT f1();
|
||||
ERROR HY000: View's SELECT refers to a temporary table 't1'
|
||||
DROP FUNCTION f1;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
DROP VIEW IF EXISTS v1;
|
||||
CREATE TABLE t1 (f4 CHAR(5));
|
||||
CREATE VIEW v1 AS SELECT * FROM t1;
|
||||
DESCRIBE v1;
|
||||
Field Type Null Key Default Extra
|
||||
f4 char(5) YES NULL
|
||||
ALTER TABLE t1 CHANGE COLUMN f4 f4x CHAR(5);
|
||||
DESCRIBE v1;
|
||||
ERROR HY000: View 'test.v1' references invalid table(s) or column(s) or function(s)
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1;
|
||||
|
@ -1966,3 +1966,20 @@ CREATE VIEW v1 AS SELECT f1();
|
||||
DROP FUNCTION f1;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# BUG #12533 (crash on DESCRIBE <view> after renaming base table column)
|
||||
#
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
DROP VIEW IF EXISTS v1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (f4 CHAR(5));
|
||||
CREATE VIEW v1 AS SELECT * FROM t1;
|
||||
DESCRIBE v1;
|
||||
|
||||
ALTER TABLE t1 CHANGE COLUMN f4 f4x CHAR(5);
|
||||
--error 1356
|
||||
DESCRIBE v1;
|
||||
DROP TABLE t1;
|
||||
DROP VIEW v1;
|
||||
|
Reference in New Issue
Block a user