~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_timestamp.test

  • Committer: Brian Aker
  • Date: 2009-02-27 21:38:40 UTC
  • Revision ID: brian@tangent.org-20090227213840-r9hq3sfk8d8qrg72
Code cleanup in signal_handler.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
--enable_warnings
8
8
 
9
9
# Set timezone to GMT-3, to make it possible to use "interval 3 hour"
10
 
create table t1 (Tag int not null, Monat int not null,
 
10
create table t1 (Zeit time, Tag int not null, Monat int not null,
11
11
Jahr int not null, index(Tag), index(Monat), index(Jahr) );
12
 
insert into t1 values (16,9,1998),(16,9,1998);
13
 
SELECT CONCAT(Jahr,'-',Monat,'-',Tag) AS Date,
14
 
   UNIX_TIMESTAMP(CONCAT(Jahr,'-',Monat,'-',Tag)) AS Unix
 
12
insert into t1 values ("09:26:00",16,9,1998),("09:26:00",16,9,1998);
 
13
SELECT CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit) AS Date,
 
14
   UNIX_TIMESTAMP(CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit)) AS Unix
15
15
FROM t1;
16
16
drop table t1;
17
17