]> git.donarmstrong.com Git - infobot.git/commitdiff
return &sqlRaw results rather than always returning 1, thus passing on error status.
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 10 Jan 2006 17:53:19 +0000 (17:53 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Tue, 10 Jan 2006 17:53:19 +0000 (17:53 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1262 c11ca15a-4712-0410-83d8-924469b57eb5

src/dbi.pl

index bee8063ac20ce82eed837195fae5d32627e161f4..bb3c396c9b38df6a134d1074b73cbdeae7777999 100644 (file)
@@ -293,12 +293,10 @@ sub sqlInsert {
        return;
     }
 
-    &sqlRaw("Insert($table)", sprintf(
+    return &sqlRaw("Insert($table)", sprintf(
        "INSERT %s INTO %s (%s) VALUES (%s)",
        ($other || ""), $table, join(',',@k), join(',',@v)
     ) );
-
-    return 1;
 }
 
 #####