 +      if (!$success) {
 +        if (PGSQL_CONNECTION_OK !== pg_connection_status($this->handle)) {
 +          throw new SQLConnectionClosedException(
-+            'Statement failed: '.trim(sybase_get_last_message()), 
++            'Statement failed: '.rtrim(pg_last_error($this->handle)), 
 +            $sql
 +          );
 +        } else {

     'rdbms.DBEvent',
Index: skeleton/rdbms/pgsql/PostgreSQLResultSet.class.php
===================================================================
--- skeleton/rdbms/pgsql/PostgreSQLResultSet.class.php	(revision 12010)
+++ skeleton/rdbms/pgsql/PostgreSQLResultSet.class.php	(working copy)
@@ -38,7 +38,7 @@
      */


Index: skeleton/rdbms/DBConnection.class.php
===================================================================
--- skeleton/rdbms/DBConnection.class.php	(revision 12052)
+++ skeleton/rdbms/DBConnection.class.php	(working copy)
@@ -8,6 +8,7 @@
     'rdbms.SQLException',
