diff --git a/include/class_database.php b/include/class_database.php index 107321bb0..c335a9274 100644 --- a/include/class_database.php +++ b/include/class_database.php @@ -147,8 +147,8 @@ class Database } 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 ); } }