// 调试结束$this->debug(false);// 返回结果集return $this->getResult($pdo, $procedure);} catch (\PDOException $e) {if ($this->isBreak($e)) {return $this->close()->query($sql, $bind, $master, $pdo);}echo '错误语句:'. $sql;throw new PDOException($e, $this->config, $this->getLastsql());} catch (\Throwable $e) {if ($this->isBreak($e)) {return $this->close()->query($sql, $bind, $master, $pdo);}echo '错误语句:'. $sql;throw $e;} catch (\Exception $e) {if ($this->isBreak($e)) {return $this->close()->query($sql, $bind, $master, $pdo);
| SQLSTATE | 42000 |
| Driver Error Code | 1064 |
| Driver Error Message | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 |
| Error Code | 10501 |
| Error Message | SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 |
| Error SQL | select * from (select *,concat('_',`key`,'_') as key2 from tp_spec_goods_price as a) b where 1=1 and () |
| type | mysql |
| hostname | 127.0.0.1 |
| database | innovastarx |
| hostport | 3306 |
| dsn | |
| params | [] |
| charset | utf8 |
| prefix | tp_ |
| debug | true |
| deploy | 0 |
| rw_separate | false |
| master_num | 1 |
| slave_no | |
| fields_strict | true |
| result_type | 2 |
| resultset_type | array |
| auto_timestamp | false |
| datetime_format | Y-m-d H:i:s |
| sql_explain | false |
| builder | |
| query | \think\db\Query |
| break_reconnect | false |
// 调试结束$this->debug(false);// 返回结果集return $this->getResult($pdo, $procedure);} catch (\PDOException $e) {if ($this->isBreak($e)) {return $this->close()->query($sql, $bind, $master, $pdo);}echo '错误语句:'. $sql;throw new PDOException($e, $this->config, $this->getLastsql());} catch (\Throwable $e) {if ($this->isBreak($e)) {return $this->close()->query($sql, $bind, $master, $pdo);}echo '错误语句:'. $sql;throw $e;} catch (\Exception $e) {if ($this->isBreak($e)) {return $this->close()->query($sql, $bind, $master, $pdo);
| SQLSTATE | 42000 |
| Driver Error Code | 1064 |
| Driver Error Message | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 |
| Error Code | 10501 |
| Error Message | SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 |
| Error SQL | select * from (select *,concat('_',`key`,'_') as key2 from tp_spec_goods_price as a) b where 1=1 and () |
| type | mysql |
| hostname | 127.0.0.1 |
| database | innovastarx |
| hostport | 3306 |
| dsn | |
| params | [] |
| charset | utf8 |
| prefix | tp_ |
| debug | true |
| deploy | 0 |
| rw_separate | false |
| master_num | 1 |
| slave_no | |
| fields_strict | true |
| result_type | 2 |
| resultset_type | array |
| auto_timestamp | false |
| datetime_format | Y-m-d H:i:s |
| sql_explain | false |
| builder | |
| query | \think\db\Query |
| break_reconnect | false |