|
@ -41,7 +41,7 @@ abstract class SqlDbDriver extends DbDriver |
|
|
* @param mixed $on_duplicate |
|
|
* @param mixed $on_duplicate |
|
|
* @return int Affected rows count |
|
|
* @return int Affected rows count |
|
|
*/ |
|
|
*/ |
|
|
public function insert($table, $data) |
|
|
|
|
|
|
|
|
public function insert($table, $data, $on_duplicate = array()) |
|
|
{ |
|
|
{ |
|
|
$columns = array(); |
|
|
$columns = array(); |
|
|
foreach ($data as $col => $val) { |
|
|
foreach ($data as $col => $val) { |
|
|