~drizzle-trunk/drizzle/development

1 by brian
clean slate
1
drop table if exists t1;
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
2
create table t1 (date date, timestamp timestamp,
1 by brian
clean slate
3
quarter int, week int, year int, timestampadd int, timestampdiff int);
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
4
insert into t1 values ("97/02/03","1997-01-02",1,2,3,4,5);
1 by brian
clean slate
5
select * from t1;
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
6
date	timestamp	quarter	week	year	timestampadd	timestampdiff
7
1997-02-03	1997-01-02 00:00:00	1	2	3	4	5
8
select t1.date+0,t1.timestamp+0,
1 by brian
clean slate
9
t1.quarter+t1.week, t1.year+timestampadd,  timestampdiff from t1;
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
10
t1.date+0	t1.timestamp+0	t1.quarter+t1.week	t1.year+timestampadd	timestampdiff
11
19970203	19970102000000	3	7	5
1 by brian
clean slate
12
drop table t1;
13
create table events(binlog int);
14
insert into events values(1);
15
select events.binlog from events;
16
binlog
17
1
18
drop table events;