phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4975 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4975 - phpcompta/trunk/include
Date: Fri, 22 Jun 2012 13:42:23 +0200 (CEST)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]