2
# Test keywords as fields
6
drop table if exists t1;
9
create table t1 (time time, date date, timestamp timestamp,
10
quarter int, week int, year int, timestampadd int, timestampdiff int);
11
insert into t1 values ("12:22:22","97:02:03","1997-01-02",1,2,3,4,5);
13
select t1.time+0,t1.date+0,t1.timestamp+0,concat(date," ",time),
14
t1.quarter+t1.week, t1.year+timestampadd, timestampdiff from t1;
16
create table events(binlog int);
17
insert into events values(1);
18
select events.binlog from events;