~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/keywords.result

  • Committer: Lee Bieber
  • Date: 2011-01-08 03:39:25 UTC
  • mfrom: (2062.1.2 build)
  • Revision ID: kalebral@gmail.com-20110108033925-koobar399kwrm4ba
Merge Brian - parser clean up
Merge Marisa - latest doc updates, fix sphinx warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1;
2
 
create table t1 (date date, timestamp timestamp,
 
2
create table t1 (date_arg date, timestamp_arg timestamp,
3
3
quarter int, week int, year int, timestampadd int, timestampdiff int);
4
4
insert into t1 values ("97/02/03","1997-01-02",1,2,3,4,5);
5
5
select * from t1;
6
 
date    timestamp       quarter week    year    timestampadd    timestampdiff
 
6
date_arg        timestamp_arg   quarter week    year    timestampadd    timestampdiff
7
7
1997-02-03      1997-01-02 00:00:00     1       2       3       4       5
8
 
select t1.date+0,t1.timestamp+0,
 
8
select t1.date_arg+0, t1.timestamp_arg+0,
9
9
t1.quarter+t1.week, t1.year+timestampadd,  timestampdiff from t1;
10
 
t1.date+0       t1.timestamp+0  t1.quarter+t1.week      t1.year+timestampadd    timestampdiff
 
10
t1.date_arg+0   t1.timestamp_arg+0      t1.quarter+t1.week      t1.year+timestampadd    timestampdiff
11
11
19970203        19970102000000  3       7       5
12
12
drop table t1;
13
13
create table events(binlog int);