mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-14652 NATURAL JOIN crash in mark_common_columns() [fixes #405]
SQL: reverted NATURAL JOIN fix #161 (deprecated by #383)
This commit is contained in:
@ -362,6 +362,12 @@ select * from t1 for system_time as of current_timestamp;
|
||||
x
|
||||
select * from t1 for system_time as of now;
|
||||
ERROR 42S22: Unknown column 'now' in 'where clause'
|
||||
### Issue #405, NATURAL JOIN failure
|
||||
create or replace table t1 (a int) with system versioning;
|
||||
create or replace table t2 (b int);
|
||||
create or replace view v1 as select a, sys_trx_start, sys_trx_end from t1 where a > round(rand()*1000);
|
||||
select * from v1 natural join t2;
|
||||
a b
|
||||
drop view v1;
|
||||
drop table t1, t2;
|
||||
call innodb_verify_vtq(32);
|
||||
|
Reference in New Issue
Block a user