Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

Commit 8928c45

Browse files
committed
修正insertall方法
1 parent 8d8e002 commit 8928c45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -950,11 +950,11 @@ public function insertAll($dataSet, $options = array(), $replace = false)
950950
$value[] = 'NULL';
951951
} elseif (is_scalar($val)) {
952952
if (0 === strpos($val, ':') && in_array($val, array_keys($this->bind))) {
953-
$value[] = $this->parseValue($val);
953+
$value[] = $val;
954954
} else {
955955
$name = count($this->bind);
956-
$value[] = ':' . $name;
957-
$this->bindParam($name, $val);
956+
$value[] = ':' . $key . '_' . $name;
957+
$this->bindParam($key . '_' . $name, $val);
958958
}
959959
}
960960
}

0 commit comments

Comments
 (0)