~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/global_status.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:
1
 
# test that flush global status; clears global status;
2
 
flush global status;
3
 
 
4
 
use test;
5
 
--disable_warnings
6
 
drop table if exists t1;
7
 
--enable_warnings
8
 
create table t1 (a int);
9
 
insert into t1 values (1),(2),(3);
10
 
select * from t1;
11
 
select * from t1;
12
 
select * from t1;
13
 
 
14
 
show global status like 'Handler%';
15
 
connect (con1,localhost,root,,);
16
 
connection con1;
17
 
use test;
18
 
select * from t1;
19
 
select * from t1;
20
 
select * from t1;
21
 
 
22
 
show global status like 'Handler%';
23
 
 
24
 
flush global status;
25
 
 
26
 
# should show reset counters;
27
 
show global status like 'Handler%';