Author: witekfl                      Date: Sun Nov 25 12:36:32 2007 GMT
Module: PLD-doc                       Tag: HEAD
---- Log message:
- show error when the query fails.

---- Files affected:
PLD-doc/PLD_www_res/buildlogs.sql:
   addlog.php (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: PLD-doc/PLD_www_res/buildlogs.sql/addlog.php
diff -u PLD-doc/PLD_www_res/buildlogs.sql/addlog.php:1.4 
PLD-doc/PLD_www_res/buildlogs.sql/addlog.php:1.5
--- PLD-doc/PLD_www_res/buildlogs.sql/addlog.php:1.4    Sat Nov 24 18:00:46 2007
+++ PLD-doc/PLD_www_res/buildlogs.sql/addlog.php        Sun Nov 25 13:36:27 2007
@@ -70,8 +70,9 @@
 } 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());
+}
 ?>
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/PLD-doc/PLD_www_res/buildlogs.sql/addlog.php?r1=1.4&r2=1.5&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to