/**
  * construct
  *
  * @param $sql
  *   A string containing the SQL query used for this recordset.
  * @param $result
  *
  */
 public function __construct($sql = null, $result = null, $anvilDataConnection = null)
 {
     parent::__construct($sql, $result, $anvilDataConnection);
     //        $this->addProperty('result', '');
     //        $this->addProperty('rowNumber', 0);
     //        $this->addProperty('sql', '');
     //        $this->result = $result;
     //        $this->sql = $sql;
     if (mysql_errno()) {
         $this->processError(mysql_errno(), mysql_error());
         //			$error_message = '<b>MySQL Error [' . mysql_errno() . '] ' . mysql_error() . "</b><br><br>\n";
         //			$error_message .= $sql . "<br><br>\n";
         //$error_message .= "<b>Trace:</b><br>\n" . DevTrap::renderTraceInfoHTML() . "\n<br><br>\n";
         //			trigger_error($error_message, E_USER_ERROR);
         //            trigger_error($error_message, E_RECOVERABLE_ERROR);
     }
     //	    $this->_hasRows = $result;
 }