$this->PDOStatement->execute();
// 调试结束
$this->debug(false);
// 返回结果集
return $this->getResult($pdo, $procedure);
} catch (\PDOException $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
throw new PDOException($e, $this->config, $this->getLastsql());
} catch (\Exception $e) {
if ($this->isBreak($e)) {
return $this->close()->query($sql, $bind, $master, $pdo);
}
throw $e;
}
}
/**
SQLSTATE | 42S22 |
Driver Error Code | 1054 |
Driver Error Message | Unknown column 'create_time' in 'order clause' |
Error Code | 10501 |
Error Message | SQLSTATE[42S22]: Column not found: 1054 Unknown column 'create_time' in 'order clause' |
Error SQL | SELECT `id`,`name`,`level`,`upid`,`status` FROM `ob_region` WHERE `id` = 370700 ORDER BY create_time desc LIMIT 1 |
type | mysql |
hostname | 127.0.0.1 |
database | ds_cnwtvcn_com |
hostport | 3306 |
dsn | |
params | [] |
charset | utf8 |
prefix | ob_ |
debug | true |
deploy | 0 |
rw_separate | false |
master_num | 1 |
slave_no | |
fields_strict | false |
result_type | 2 |
resultset_type | array |
auto_timestamp | true |
datetime_format | Y-m-d H:i:s |
sql_explain | true |
builder | |
query | \think\db\Query |
break_reconnect | false |
sys_data_key | rT2naZ)ws^D0&@bPc7z$J!9gyE]ou{4NQK8/[eIm |