~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/keywords.test

  • Committer: Monty Taylor
  • Date: 2008-10-09 22:38:27 UTC
  • mto: This revision was merged to the branch mainline in revision 497.
  • Revision ID: monty@inaugust.com-20081009223827-bc9gvpiplsmvpwyq
Moved test() to its own file.
Made a new function to possibly replace int10_to_str.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Test keywords as fields
3
 
#
4
 
 
5
 
--disable_warnings
6
 
drop table if exists t1;
7
 
--enable_warnings
8
 
 
9
 
create table t1 (date date, timestamp timestamp,
10
 
quarter int, week int, year int, timestampadd int, timestampdiff int);
11
 
insert into t1 values ("97/02/03","1997-01-02",1,2,3,4,5);
12
 
select * from t1;
13
 
select t1.date+0,t1.timestamp+0,
14
 
       t1.quarter+t1.week, t1.year+timestampadd,  timestampdiff from t1;
15
 
drop table t1;
16
 
create table events(binlog int);
17
 
insert into events values(1);
18
 
select events.binlog from events;
19
 
drop table events;
20
 
 
21
 
# End of 4.1 tests
22
 
 
23
 
 
24
 
# End of 5.1 tests
25
 
 
26
 
# End of 5.0 tests