        }
        return TRUE;
      }
+@@ -209,11 +208,11 @@
+       $sql= call_user_func_array(array($this, 'prepare'), $args);
+ 
+       if (!is_resource($this->handle)) {
+-        if (!($this->flags & DB_AUTOCONNECT)) throw(new SQLStateException('Not connected'));
++        if (!($this->flags & DB_AUTOCONNECT)) throw new SQLStateException('Not connected');
+         $c= $this->connect();
+         
+         // Check for subsequent connection errors
+-        if (FALSE === $c) throw(new SQLStateException('Previously failed to connect'));
++        if (FALSE === $c) throw new SQLStateException('Previously failed to connect');
+       }
+       
+       $this->_obs && $this->notifyObservers(new DBEvent(__FUNCTION__, $sql));
 @@ -233,17 +232,19 @@
            // Sybase:  Client message:  Read from SQL server failed. (severity 78)
            //

     }
     
     /**
Index: skeleton/rdbms/mysql/MySQLConnection.class.php
===================================================================
--- skeleton/rdbms/mysql/MySQLConnection.class.php	(revision 12005)
+++ skeleton/rdbms/mysql/MySQLConnection.class.php	(working copy)
@@ -254,19 +254,21 @@
         switch ($e= mysql_errno($this->handle)) {
           case 2006: // MySQL server has gone away

         }
       }
       
Index: skeleton/rdbms/mysql/MySQLResultSet.class.php
===================================================================
--- skeleton/rdbms/mysql/MySQLResultSet.class.php	(revision 12005)
+++ skeleton/rdbms/mysql/MySQLResultSet.class.php	(working copy)
@@ -39,7 +39,7 @@
      */
     public function seek($offset) { 
       if (!mysql_data_seek($this->handle, $offset)) {
-        throw(new SQLException('Cannot seek to offset '.$offset));
+        throw new SQLException('Cannot seek to offset '.$offset);
       }
       return TRUE;
     }
