Skip to content

Commit

Permalink
Add mysql determine_driver test by Pedro Melo
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi committed Nov 12, 2009
1 parent c9c9297 commit 10176e1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions t/71mysql.t
Expand Up @@ -227,4 +227,14 @@ NULLINSEARCH: {
=> 'Nothing Found!';
}


## If find() is the first query after connect()
## DBI::Storage::sql_maker() will be called before
## _determine_driver() and so the ::SQLHacks class for MySQL
## will not be used

my $schema2 = DBICTest::Schema->connect($dsn, $user, $pass);
$schema2->resultset("Artist")->find(4);
isa_ok($schema2->storage->sql_maker, 'DBIx::Class::SQLAHacks::MySQL');

done_testing;

0 comments on commit 10176e1

Please sign in to comment.