#!/usr/bin/php.cli
<?php
-// $Revision: 1.3 $, $Date: 2007-11-24 11:10:33 $
+// $Revision: 1.4 $, $Date: 2007-11-24 17:00:46 $
$database = 'sqlite:/home/services/ftp/buildlogs.db';
$root_directory = '/home/services/ftp/pub/pld-buildlogs';
// $database and $root_directory are taken from buildlogs.inc .
} else {
$query = "INSERT INTO logs(arch_id, result, size, mtime, spec) VALUES($arch_id, $result_id, $size, $mtime, '$spec_name')";
}
-//echo "$query\n";
-$dbh->beginTransaction();
-$dbh->exec("$query");
-$dbh->commit();
+
+$ile = $dbh->exec("$query");
+if ($ile != 1) {
+ print_r($dbh->errorInfo());
+}
?>