mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge mockturtle.local:/home/dlenev/src/mysql-5.0-bg24491
into mockturtle.local:/home/dlenev/src/mysql-5.1-bg24491 mysql-test/t/sp-error.test: Auto merged sql/item.h: Auto merged sql/sql_table.cc: Auto merged mysql-test/r/ps.result: SCCS merged mysql-test/r/sp-error.result: SCCS merged mysql-test/t/disabled.def: SCCS merged mysql-test/t/ps.test: SCCS merged
This commit is contained in:
@ -1250,6 +1250,25 @@ ERROR HY000: View's SELECT contains a variable or parameter
|
||||
PREPARE stmt FROM "CREATE VIEW v AS SELECT ?";
|
||||
ERROR HY000: View's SELECT contains a variable or parameter
|
||||
DROP TABLE t1;
|
||||
drop tables if exists t1;
|
||||
drop procedure if exists bug24491;
|
||||
create table t1 (id int primary key auto_increment, value varchar(10));
|
||||
insert into t1 (id, value) values (1, 'FIRST'), (2, 'SECOND'), (3, 'THIRD');
|
||||
create procedure bug24491()
|
||||
insert into t1 (id, value) select * from (select 4 as i, 'FOURTH' as v) as y on duplicate key update v = 'DUP';
|
||||
call bug24491();
|
||||
ERROR 42S22: Unknown column 'v' in 'field list'
|
||||
call bug24491();
|
||||
ERROR 42S22: Unknown column 'v' in 'field list'
|
||||
drop procedure bug24491;
|
||||
create procedure bug24491()
|
||||
insert into t1 (id, value) select * from (select 4 as id, 'FOURTH' as value) as y on duplicate key update y.value = 'DUP';
|
||||
call bug24491();
|
||||
ERROR 42S22: Unknown column 'y.value' in 'field list'
|
||||
call bug24491();
|
||||
ERROR 42S22: Unknown column 'y.value' in 'field list'
|
||||
drop procedure bug24491;
|
||||
drop tables t1;
|
||||
End of 5.0 tests
|
||||
drop function if exists bug16164;
|
||||
create function bug16164() returns int
|
||||
|
Reference in New Issue
Block a user