~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysql-test/t/func_timestamp.test

  • Committer: Monty Taylor
  • Date: 2008-07-05 11:20:18 UTC
  • mto: This revision was merged to the branch mainline in revision 62.
  • Revision ID: monty@inaugust.com-20080705112018-fr12kkmgphtu7m29
Changes so that removal of duplicate curr_dir from my_sys.h work.

Show diffs side-by-side

added added

removed removed

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