MODPATH/leap/classes/Base/DB/MsSQL/DataReader/Standard.php [ 48 ] 43 */ 44 public function __construct(DB_Connection_Driver $connection, $sql, $mode = NULL) { 45 $resource = $connection->get_resource(); 46 $command = @mssql_query($sql, $resource); 47 if ($command === FALSE) { 48 throw new Throwable_SQL_Exception('Message: Failed to query SQL statement. Reason: :reason', array(':reason' => @mssql_get_last_message())); 49 } 50 $this->command = $command; 51 $this->record = FALSE; 52 }