[Jifty-commit] r6782 - Jifty-DBI/trunk/t

Jifty commits jifty-commit at lists.jifty.org
Wed Apr 15 13:49:45 EDT 2009


Author: ruz
Date: Wed Apr 15 13:49:44 2009
New Revision: 6782

Modified:
   Jifty-DBI/trunk/t/03rename_column.t
   Jifty-DBI/trunk/t/03rename_table.t

Log:
* unconditionaly drop tables for testing

Modified: Jifty-DBI/trunk/t/03rename_column.t
==============================================================================
--- Jifty-DBI/trunk/t/03rename_column.t	(original)
+++ Jifty-DBI/trunk/t/03rename_column.t	Wed Apr 15 13:49:44 2009
@@ -25,7 +25,9 @@
     connect_handle($handle);
     isa_ok( $handle->dbh, 'DBI::db' );
 
-    my $sth = $handle->simple_query("DROP TABLE IF EXISTS test") if $d eq 'mysql';
+    my $sth;
+
+    eval { $handle->simple_query("DROP TABLE IF EXISTS test") };
 
     $sth = $handle->simple_query(
         "CREATE TABLE test (a int, x integer not null default 1)"

Modified: Jifty-DBI/trunk/t/03rename_table.t
==============================================================================
--- Jifty-DBI/trunk/t/03rename_table.t	(original)
+++ Jifty-DBI/trunk/t/03rename_table.t	Wed Apr 15 13:49:44 2009
@@ -26,8 +26,8 @@
     isa_ok( $handle->dbh, 'DBI::db' );
 
     my $sth;
-    $sth = $handle->simple_query("DROP TABLE IF EXISTS test") if $d eq 'mysql';
-    $sth = $handle->simple_query("DROP TABLE IF EXISTS test1") if $d eq 'mysql';
+    eval { $handle->simple_query("DROP TABLE IF EXISTS test") };
+    eval { $handle->simple_query("DROP TABLE IF EXISTS test1") };
 
     $sth = $handle->simple_query("CREATE TABLE test (a int)");
     ok $sth, 'created a table';


More information about the Jifty-commit mailing list