/** * Query string associated with PDOStatement. * * @return string */ public function queryString() { return QueryCompiler::interpolate($this->statement->queryString, $this->parameters); }
/** * Get interpolated (populated with parameters) SQL which will be run against database, please * use this method for debugging purposes only. * * @return string */ public function queryString() { return $this->compiler->interpolate($this->sqlStatement(), $this->database->driver()->prepareParameters($this->getParameters())); }