~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/r/keywords.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1;
 
2
create table t1 (time time, date date, timestamp timestamp,
 
3
quarter int, week int, year int, timestampadd int, timestampdiff int);
 
4
insert into t1 values ("12:22:22","97:02:03","1997-01-02",1,2,3,4,5);
 
5
select * from t1;
 
6
time    date    timestamp       quarter week    year    timestampadd    timestampdiff
 
7
12:22:22        1997-02-03      1997-01-02 00:00:00     1       2       3       4       5
 
8
select t1.time+0,t1.date+0,t1.timestamp+0,concat(date," ",time),
 
9
t1.quarter+t1.week, t1.year+timestampadd,  timestampdiff from t1;
 
10
t1.time+0       t1.date+0       t1.timestamp+0  concat(date," ",time)   t1.quarter+t1.week      t1.year+timestampadd    timestampdiff
 
11
122222  19970203        19970102000000  1997-02-03 12:22:22     3       7       5
 
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;