Author: danydb
Date: 2012-06-22 13:42:22 +0200 (Fri, 22 Jun 2012)
New Revision: 4975

Modified:
   phpcompta/trunk/include/class_database.php
Log:
Improve Exception

Modified: phpcompta/trunk/include/class_database.php
===================================================================
--- phpcompta/trunk/include/class_database.php  2012-06-22 11:42:06 UTC (rev 
4974)
+++ phpcompta/trunk/include/class_database.php  2012-06-22 11:42:22 UTC (rev 
4975)
@@ -147,8 +147,8 @@
             }
             if ( ! $this->ret )
             {
-                               $str_error=pg_last_error($this->db);
-                throw new Exception ("  SQL ERROR $p_string ".$str_error,1);
+               $str_error=pg_last_error($this->db). pg_result_error($this->db);
+                throw new Exception ("  SQL ERROR $p_string ".$str_error,1 );
             }
 
         }



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu

_______________________________________________
Phpcompta  est un logiciel libre de comptabilité en ligne 
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to