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

Jifty commits jifty-commit at lists.jifty.org
Mon May 11 17:28:21 EDT 2009


Author: ruz
Date: Mon May 11 17:28:20 2009
New Revision: 6984

Modified:
   Jifty-DBI/trunk/t/utils.pl

Log:
* oops, hardcoded table name in the query

Modified: Jifty-DBI/trunk/t/utils.pl
==============================================================================
--- Jifty-DBI/trunk/t/utils.pl	(original)
+++ Jifty-DBI/trunk/t/utils.pl	Mon May 11 17:28:20 2009
@@ -338,10 +338,10 @@
     my ($table, $handle) = @_;
     my $d = handle_to_driver( $handle );
     if ( $d eq 'Pg' ) {
-        my $exists = $handle->dbh->selectrow_array(
+        my ($exists) = $handle->dbh->selectrow_array(
             "select 1 from pg_tables where tablename = ?", undef, $table
         );
-        $handle->simple_query("DROP TABLE test") if $exists;
+        $handle->simple_query("DROP TABLE $table") if $exists;
     }
     else {
         local $@;


More information about the Jifty-commit mailing list