// 调试结束
$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);
}
echo '错误语句:'. $sql;
throw new PDOException($e, $this->config, $this->getLastsql());
}
}
/**
* 执行语句
* @access public
* @param string $sql sql指令
* @param array $bind 参数绑定
* @return int
SQLSTATE | 42S22 |
Driver Error Code | 1054 |
Driver Error Message | Unknown column '390' in 'order clause' |
Error Code | 10501 |
Error Message | SQLSTATE[42S22]: Column not found: 1054 Unknown column '390' in 'order clause' |
Error SQL | SELECT * FROM `tp_goods` `g` INNER JOIN `tp_store` `s` ON `s`.`store_id`=`g`.`store_id` WHERE `goods_id` IN (24,25,29,30,31,35,36,37,38,39,42,44,45,46,48,49,51,52,53,54,56,57,61,62,64,66,67,68,69,70,72,73,74,75,76,77,78,79,80,81,82,84,85,87,88,89,90,92,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,116,117,118,120,121,122,123,124,125,126,127,128,133,136,137,139,140,142,143,144,145,146,147,148,151,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,172,173,174,176,177,178,179,180,181,182,183,184,185,186,187,188,189,192,197,198,199,200,202,203,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298) ORDER BY 390 asc LIMIT 0,40 |
type | mysql |
hostname | 139.159.251.101 |
database | guangdiancheng |
username | guangdiancheng |
password | iz4XAEyBLzAT33k5 |
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 |