$this->PDOStatement->execute();
// 调试结束
$this->debug(false);
// 返回结果集
return $this->getResult($pdo, $procedure);
} catch (\PDOException $e) {
if ($this->config['break_reconnect'] && $this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
throw new PDOException($e, $this->config, $this->getLastsql());
}
}
/**
* 执行语句
* @access public
* @param string $sql sql指令
* @param array $bind 参数绑定
* @return int
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 '-30,1' 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 '-30,1' at line 1 |
Error SQL | SELECT `id` FROM `mx8_article` WHERE `cid` IN (49,50,51,52,53,54,65) AND `city_id` = 789 ORDER BY id desc LIMIT -30,1 |
type | mysql |
hostname | 127.0.0.1 |
database | dm_67_new |
username | dm_67_new |
password | zHtmeixh77m8Yh7L |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | mx8_ |
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 | false |
sql_explain | false |
builder | |
query | \think\db\Query |
break_reconnect | false |