~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/func_timestamp.result

  • Committer: Brian Aker
  • Date: 2009-01-08 22:38:15 UTC
  • Revision ID: brian@tangent.org-20090108223815-i7p6uaajqxapge8a
func_timestamp now working.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1;
2
 
set time_zone="+03:00";
3
 
create table t1 (Zeit time, Tag tinyint not null, Monat tinyint not null,
4
 
Jahr smallint not null, index(Tag), index(Monat), index(Jahr) );
 
2
create table t1 (Zeit time, Tag int not null, Monat int not null,
 
3
Jahr int not null, index(Tag), index(Monat), index(Jahr) );
5
4
insert into t1 values ("09:26:00",16,9,1998),("09:26:00",16,9,1998);
6
5
SELECT CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit) AS Date,
7
6
UNIX_TIMESTAMP(CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit)) AS Unix
10
9
1998-9-16 09:26:00      905927160
11
10
1998-9-16 09:26:00      905927160
12
11
drop table t1;
13
 
set time_zone= @@global.time_zone;