Skip to content
This repository has been archived by the owner on Nov 24, 2017. It is now read-only.

Commit

Permalink
Changed SQLite tmpstore setting
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsLeenheer committed Jul 26, 2010
1 parent b2a5f15 commit 597fdc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iphone/webui/index.php
Expand Up @@ -294,6 +294,8 @@

case 'watchfolder':
$dbHandle = new PDO('sqlite:../controller.sqlite3');
$dbHandle->exec('PRAGMA temp_store=2');

$dbHandle->exec('CREATE TABLE IF NOT EXISTS watchlist (path text PRIMARY KEY, stale int(11), firstseen int(11), lastseen int(11))');

if (isset($_GET['command']) && $_GET['command'] == 'unmark') {
Expand Down Expand Up @@ -360,7 +362,6 @@
$select = $dbHandle->prepare('SELECT path, stale FROM watchlist WHERE stale < 2 ORDER BY firstseen DESC');
$select->execute();


$result = $select->fetchAll();
$files = array();

Expand Down

0 comments on commit 597fdc2

Please sign in to comment.