From d8bffab87c47755584da43b41f7f2990e1d66352 Mon Sep 17 00:00:00 2001 From: timriker Date: Thu, 4 Sep 2003 18:39:59 +0000 Subject: [PATCH] sqlite needs inserts, not updates. why was this off? git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@826 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/dbi.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dbi.pl b/src/dbi.pl index f9f7319..6202114 100644 --- a/src/dbi.pl +++ b/src/dbi.pl @@ -240,7 +240,8 @@ sub sqlSet { my $result = &sqlSelect($table, $k, $where_href); # &DEBUG("result is not defined :(") if (!defined $result); - if (1 or defined $result) { + # this was hardwired to use sqlUpdate. sqlite does not do inserts on sqlUpdate. + if (defined $result) { &sqlUpdate($table, $data_href, $where_href); } else { # hack. -- 2.39.2