/** * Return the SQL query string. * * @return string */ public function __toString() { try { // Return the SQL string return $this->compile(Database::instance()); } catch (\Exception $e) { return Database_Exception::text($e); } }
/** * @return string */ public function database_error() { if ($this->database_error !== NULL) { return $this->database_error->getMessage(); } }