Skip to content

Commit 73ecbb1

Browse files
committed
数据库驱动调整
1 parent deb8309 commit 73ecbb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ThinkPHP/Library/Think/Db/Driver/Mysql.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function insertAll($dataSet,$options=array(),$replace=false) {
108108
if(is_array($val) && 'exp' == $val[0]){
109109
$value[] = $val[1];
110110
}elseif(is_scalar($val)){
111-
if(0===strpos($val,':')){
111+
if(0===strpos($val,':') && in_array($val,array_keys($this->bind))){
112112
$value[] = $this->parseValue($val);
113113
}else{
114114
$name = count($this->bind);

0 commit comments

Comments
 (0)