From: Metabox Date: Sat, 3 Aug 2019 19:21:49 +0000 (+1000) Subject: New Notes table cross SQLite db compatible. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=6120a6b9fae4cf85831c547db4a1c3c5d5be765d;p=LifeLog.git New Notes table cross SQLite db compatible. --- diff --git a/htdocs/cgi-bin/login_ctr.cgi b/htdocs/cgi-bin/login_ctr.cgi index b93920e..deb4c15 100755 --- a/htdocs/cgi-bin/login_ctr.cgi +++ b/htdocs/cgi-bin/login_ctr.cgi @@ -154,9 +154,9 @@ try{ } catch{ print $cgi->header; - print "SERVER ERROR:".$_; - print $cgi->end_html; - exit; + print "SERVER ERROR:".$_; + print $cgi->end_html; + exit; } } @@ -246,7 +246,16 @@ try{ } } # - #TODO Future table. + # Scratch FTS4 implementation if present. + # + $st = $db->prepare(selSQLTbl('NOTES')); + $st->execute(); + if($st->fetchrow_array()) { + $rv = $db->do('DROP TABLE NOTES;'); + if($rv < 0){print "

Error->"& $DBI::errstri &"

"}; + } + # + # New Implementation as of 1.5, cross SQLite Database compatible. # $st = $db->prepare(selSQLTbl('NOTES')); $st->execute();