public function compile($db = NULL) { parent::compile($db); if (!empty($this->_outfile)) { $outfile = ' INTO OUTFILE \'' . $this->_outfile . '\'' . ' FIELDS TERMINATED BY ","' . ' OPTIONALLY ENCLOSED BY \'"\'' . ' ESCAPED BY \'"\'' . ' LINES TERMINATED BY "\\r\\n"'; $this->_sql .= $outfile; $this->_sql; } return $this->_sql; }