src/Query/Drivers/Firebird/Driver.php 1 location
|
@@ 396-403 (lines=8) @@
|
393 |
|
. implode(',', $this->quote_ident($fields)) |
394 |
|
. ") VALUES ("; |
395 |
|
|
396 |
|
foreach($data as $item) |
397 |
|
{ |
398 |
|
// Quote string values |
399 |
|
$vals = array_map(array($this, 'quote'), $item); |
400 |
|
|
401 |
|
// Add the values in the sql |
402 |
|
$sql .= $insert_template . implode(', ', $vals) . ");\n"; |
403 |
|
} |
404 |
|
|
405 |
|
// End the block of SQL statements |
406 |
|
$sql .= "END"; |
src/Query/Drivers/Sqlite/Driver.php 1 location
|
@@ 141-145 (lines=5) @@
|
138 |
|
} |
139 |
|
$sql .= "SELECT " . implode(', ', $cols) . "\n"; |
140 |
|
|
141 |
|
foreach($data as $union) |
142 |
|
{ |
143 |
|
$vals = array_map(array($this, 'quote'), $union); |
144 |
|
$sql .= "UNION SELECT " . implode(',', $vals) . "\n"; |
145 |
|
} |
146 |
|
|
147 |
|
return array($sql, NULL); |
148 |
|
} |