Skip to content

Commit a5bd591

Browse files
committed
fixed for unit tests
1 parent 8bd9ae9 commit a5bd591

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

system/Database/MySQLi/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Builder extends BaseBuilder
6666
*/
6767
protected function _insertBatch($table, $keys, $values)
6868
{
69-
return 'INSERT ' . ($this->insertIgnore ? 'IGNORE' : '') . ' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES ' . implode(', ', $values);
69+
return 'INSERT ' . ($this->insertIgnore ? 'IGNORE ' : '') . 'INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES ' . implode(', ', $values);
7070
}
7171

7272
//--------------------------------------------------------------------
@@ -84,7 +84,7 @@ protected function _insertBatch($table, $keys, $values)
8484
*/
8585
protected function _insert($table, array $keys, array $unescapedKeys)
8686
{
87-
return 'INSERT ' . ($this->insertIgnore ? 'IGNORE' : '') . ' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')';
87+
return 'INSERT ' . ($this->insertIgnore ? 'IGNORE ' : '') . 'INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')';
8888
}
8989

9090
}

system/Database/SQLite3/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected function _truncate($table)
118118
*/
119119
protected function _insertBatch($table, $keys, $values)
120120
{
121-
return 'INSERT ' . ($this->insertIgnore ? 'OR IGNORE' : '') . ' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES ' . implode(', ', $values);
121+
return 'INSERT ' . ($this->insertIgnore ? 'OR IGNORE ' : '') . 'INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES ' . implode(', ', $values);
122122
}
123123

124124
//--------------------------------------------------------------------
@@ -136,7 +136,7 @@ protected function _insertBatch($table, $keys, $values)
136136
*/
137137
protected function _insert($table, array $keys, array $unescapedKeys)
138138
{
139-
return 'INSERT ' . ($this->insertIgnore ? 'OR IGNORE' : '') . ' INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')';
139+
return 'INSERT ' . ($this->insertIgnore ? 'OR IGNORE ' : '') . 'INTO ' . $table . ' (' . implode(', ', $keys) . ') VALUES (' . implode(', ', $unescapedKeys) . ')';
140140
}
141141

142142
}

0 commit comments

Comments
 (0)