~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/func_timestamp.test

  • Committer: Stewart Smith
  • Date: 2008-07-13 06:56:15 UTC
  • mto: (210.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 211.
  • Revision ID: stewart@flamingspork.com-20080713065615-vzok75kgnnviokl9
Move MD5() into a UDF

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Tests that depend on the timestamp and the TZ variable
3
 
#
4
 
 
5
 
--disable_warnings
6
 
drop table if exists t1;
7
 
--enable_warnings
8
 
 
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,
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
15
 
FROM t1;
16
 
drop table t1;
17
 
 
18
 
# End of 4.1 tests