]> git.donarmstrong.com Git - infobot.git/commitdiff
- shoot me for not testing before committing.
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 21 Nov 2002 19:45:54 +0000 (19:45 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 21 Nov 2002 19:45:54 +0000 (19:45 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@662 c11ca15a-4712-0410-83d8-924469b57eb5

src/dbi.pl

index 144e89458cbf48064a28a41e642d6da931eceb3d..824efb7e92d77a9bd97dbc264aff5462e06517d4 100644 (file)
@@ -227,18 +227,17 @@ sub dbSelectManyHash {
     my $sql;   
 
     $sql = "SELECT $select ";
-    $sql .= "FROM $from "       if $from;
-    $sql .= "WHERE $where "     if $where;
-    $sql .= "$other"            if $other;
-    $debug_sql  = $sql;
+    $sql .= "FROM $from "      if $from;
+    $sql .= "WHERE $where "    if $where;
+    $sql .= "$other"           if $other;
 
-    sqlConnect();
-    my $c = $I{dbh}->prepare($sql);
+#    sqlConnect();
+    my $c = $dbh->prepare($sql);
     # $c->execute or print "\n<P><B>SQL Hashref Error</B><BR>\n";
 
     unless ($c->execute) {
-        apacheLog($sql);
-        #kill 9,$$;
+#      apacheLog($sql);
+       #kill 9,$$;
     }
 
     return $c;