~drizzle-trunk/drizzle/development

1 by brian
clean slate
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"
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
10
create table t1 (Tag int not null, Monat int not null,
396 by Brian Aker
Cleanup tiny and small int.
11
Jahr int not null, index(Tag), index(Monat), index(Jahr) );
896.5.1 by Jay Pipes
Removes the TIME column type and related time functions.
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
1 by brian
clean slate
15
FROM t1;
16
drop table t1;
17
18
# End of 4.1 tests