]> lifelog.hopto.org Git - LifeLog.git/commitdiff
New Notes table cross SQLite db compatible.
authorMetabox <redacted>
Sat, 3 Aug 2019 19:21:49 +0000 (05:21 +1000)
committerMetabox <redacted>
Sat, 3 Aug 2019 19:21:49 +0000 (05:21 +1000)
htdocs/cgi-bin/login_ctr.cgi

index b93920e46e327afc2ab51b5c57cf6b5f6a839079..deb4c15c41d733dce730be739bfc5f15a28fa030 100755 (executable)
@@ -154,9 +154,9 @@ try{
 }
  catch{                
          print $cgi->header;
-               print "<font color=red><b>SERVER ERROR</b></font>:".$_;
-    print $cgi->end_html;
-               exit;
+         print "<font color=red><b>SERVER ERROR</b></font>:".$_;
+         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 "<p>Error->"& $DBI::errstri &"</p>"};
+       }
+       #
+       # New Implementation as of 1.5, cross SQLite Database compatible.
        #
        $st = $db->prepare(selSQLTbl('NOTES'));
        $st->execute();