芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/edurocha/vendor/illuminate/database/QueryException.php
sql = $sql; $this->bindings = $bindings; $this->previous = $previous; $this->code = $previous->getCode(); $this->message = $this->formatMessage($sql, $bindings, $previous); if ($previous instanceof PDOException) { $this->errorInfo = $previous->errorInfo; } } /** * Format the SQL error message. * * @param string $sql * @param array $bindings * @param \Exception $previous * @return string */ protected function formatMessage($sql, $bindings, $previous) { return $previous->getMessage().' (SQL: '.str_replace_array('\?', $bindings, $sql).')'; } /** * Get the SQL for the query. * * @return string */ public function getSql() { return $this->sql; } /** * Get the bindings for the query. * * @return array */ public function getBindings() { return $this->bindings; } }