示例#1
0
 /**
  * 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);
     }
 }
示例#2
0
 /**
  * @return string
  */
 public function database_error()
 {
     if ($this->database_error !== NULL) {
         return $this->database_error->getMessage();
     }
 }