1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

SQL: unit resolution Item_field not yet accessible [fixes #398]

This commit is contained in:
Aleksey Midenkov
2017-12-14 18:40:57 +03:00
parent 1668efb722
commit f96815fe97
4 changed files with 28 additions and 6 deletions

View File

@ -356,6 +356,12 @@ create or replace table t1 (a int, b int, key idx(a)) with system versioning;
insert into t1 values (1, 1), (2, 2);
select * from t1 where (a, 2) in ((1, 1), (2, 2)) and b = 1;
a b
### Issue #398, NOW is now non-magic
create or replace table t1 (x int) with system versioning;
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'
drop view v1;
drop table t1, t2;
call innodb_verify_vtq(32);