From 0297fa9dcd73ffa465ee959cf0ab4b9a00af8f64 Mon Sep 17 00:00:00 2001 From: timriker Date: Tue, 10 Jan 2006 17:53:19 +0000 Subject: [PATCH] return &sqlRaw results rather than always returning 1, thus passing on error status. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1262 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/src/dbi.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/blootbot/src/dbi.pl b/blootbot/src/dbi.pl index bee8063..bb3c396 100644 --- a/blootbot/src/dbi.pl +++ b/blootbot/src/dbi.pl @@ -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; } ##### -- 2.39.5