~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/func_timestamp.result

Phase 1 - temporal changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
drop table if exists t1;
2
 
create table t1 (Zeit time, Tag int not null, Monat int not null,
 
2
create table t1 (Tag int not null, Monat int not null,
3
3
Jahr int not null, index(Tag), index(Monat), index(Jahr) );
4
 
insert into t1 values ("09:26:00",16,9,1998),("09:26:00",16,9,1998);
5
 
SELECT CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit) AS Date,
6
 
UNIX_TIMESTAMP(CONCAT(Jahr,'-',Monat,'-',Tag,' ',Zeit)) AS Unix
 
4
insert into t1 values (16,9,1998),(16,9,1998);
 
5
SELECT CONCAT(Jahr,'-',Monat,'-',Tag) AS Date,
 
6
UNIX_TIMESTAMP(CONCAT(Jahr,'-',Monat,'-',Tag)) AS Unix
7
7
FROM t1;
8
8
Date    Unix
9
 
1998-9-16 09:26:00      905927160
10
 
1998-9-16 09:26:00      905927160
 
9
1998-9-16       905893200
 
10
1998-9-16       905893200
11
11
drop table t1;