~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/connect.result

  • 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:
4
4
show tables;
5
5
Tables_in_test
6
6
connect(localhost,root,z,test2,MASTER_PORT,);
7
 
ERROR 42000: Unknown schema 'test2'
 
7
ERROR 42000: Unknown database 'test2'
8
8
show tables;
9
9
Tables_in_mysql
10
10
show tables;
11
11
Tables_in_test
12
12
connect(localhost,test,,test2,MASTER_PORT,);
13
 
ERROR 42000: Unknown schema 'test2'
 
13
ERROR 42000: Unknown database 'test2'
14
14
connect(localhost,test,,"",MASTER_PORT,);
15
 
ERROR 42000: Unknown schema '""'
 
15
ERROR 42000: Unknown database '""'
16
16
connect(localhost,test,zorro,test2,MASTER_PORT,);
17
 
ERROR 42000: Unknown schema 'test2'
 
17
ERROR 42000: Unknown database 'test2'
18
18
connect(localhost,test,,test2,MASTER_PORT,);
19
 
ERROR 42000: Unknown schema 'test2'
 
19
ERROR 42000: Unknown database 'test2'
20
20
connect(localhost,test,zorro,test2,MASTER_PORT,);
21
 
ERROR 42000: Unknown schema 'test2'
 
21
ERROR 42000: Unknown database 'test2'
22
22
create table t1 (id integer not null auto_increment primary key);
23
23
create temporary table t2(id integer not null auto_increment primary key);
24
24
set @id := 1;