diff --git a/library/think/db/Driver.php b/library/think/db/Driver.php index bd66c65c..36a02a88 100644 --- a/library/think/db/Driver.php +++ b/library/think/db/Driver.php @@ -1135,7 +1135,7 @@ abstract class Driver */ public function getError() { - if ($this->linkID) { + if ($this->PDOStatement) { $error = $this->PDOStatement->errorInfo(); $error = $error[1] . ':' . $error[2]; } else {