]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/DBCommon.pl
massive add-in for postgres support, contributed by troubled
[infobot.git] / src / Factoids / DBCommon.pl
index 1d869ab986e9e1b084cf7de7dd0aa88b983f505e..c672255166389215871c6009e341af8a868d4a31 100644 (file)
@@ -143,7 +143,7 @@ sub CmdUnLock {
 
     &performReply("unlocking factoid \002$faqtoid\002");
     &setFactInfo($faqtoid,"locked_by",   "");
-    &setFactInfo($faqtoid,"locked_time", "");
+    &setFactInfo($faqtoid,"locked_time", "0"); # pgsql complains if NOT NULL set. So set 0 which is the default
 
     return 1;
 }