mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
5.5 merge
This commit is contained in:
@ -5000,6 +5000,22 @@ v1_field1
|
||||
deallocate prepare my_stmt;
|
||||
DROP VIEW v1,v2;
|
||||
DROP TABLE t1,t2,t3,t4;
|
||||
#
|
||||
#MDEV-5717: Server crash with insert statement containing DEFAULT into
|
||||
#view
|
||||
#
|
||||
CREATE TABLE t1 (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`test` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
CREATE VIEW v1 AS (select t1.id AS id, t1.test AS test from t1);
|
||||
INSERT INTO v1 SET test = DEFAULT;
|
||||
select * from v1;
|
||||
id test
|
||||
1 0
|
||||
drop view v1;
|
||||
drop table t1;
|
||||
# -----------------------------------------------------------------
|
||||
# -- End of 5.3 tests.
|
||||
# -----------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user