~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/metadata.test

  • Committer: Jay Pipes
  • Date: 2009-01-30 04:01:12 UTC
  • mto: This revision was merged to the branch mainline in revision 830.
  • Revision ID: jpipes@serialcoder-20090130040112-svbn774guj98pwi4
To remain in compatibility with MySQL, added ability to interpret
decimal arguments as datetime strings for temporal functions.

Fixed YEAR(), MONTH(), DAYOFMONTH(), DAYOFYEAR(), HOUR(), MINUTE(), SECOND(), and MICROSECOND()
to accept decimal parameters and interpret them the same way as MySQL.

Fixed an issue with the TemporalFormat::matches() method which was 
incorrectly assuming all microsecond arguments were specified as 6 digits.
Added power of 10 multiplier to usecond calculation. This fixes issues with
failures in type_date and func_sapdb test cases.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
#
51
51
# Bug #11688: Bad mysql_info() results in multi-results
52
52
#
53
 
# No multi-statements in Drizzle
54
 
#
55
 
#--enable_info
56
 
#delimiter //;
57
 
#create table t1 (i int);
58
 
#insert into t1 values (1),(2),(3);
59
 
#select * from t1 where i = 2;
60
 
#drop table t1;//
61
 
#delimiter ;//
62
 
#--disable_info
 
53
--enable_info
 
54
delimiter //;
 
55
create table t1 (i int);
 
56
insert into t1 values (1),(2),(3);
 
57
select * from t1 where i = 2;
 
58
drop table t1;//
 
59
delimiter ;//
 
60
--disable_info
63
61
 
64
62
# End of 4.1 tests
65
63