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

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

       
Index: skeleton/rdbms/mysql/MySQLResultSet.class.php
===================================================================
--- skeleton/rdbms/mysql/MySQLResultSet.class.php	(revision 12052)
+++ skeleton/rdbms/mysql/MySQLResultSet.class.php	(working copy)
@@ -39,7 +39,7 @@
      */
