Improve Exception

This commit is contained in:
Dany De Bontridder 2012-06-22 11:42:22 +00:00
parent c7835363a3
commit 1ca1748ac2

View file

@ -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 );
}
}