|
@@ 317-318 (lines=2) @@
|
| 314 |
|
protected function formatTableName($table) { |
| 315 |
|
$table = trim($table, '`'); |
| 316 |
|
|
| 317 |
|
if (strpos($table, '.')) { |
| 318 |
|
return implode('.', array_map(array($this, 'formatTableName'), explode('.', $table))); |
| 319 |
|
} else { |
| 320 |
|
return '`'.str_replace('`', '``', $table).'`'; |
| 321 |
|
} |
|
@@ 569-570 (lines=2) @@
|
| 566 |
|
} else if (is_array($value)) { |
| 567 |
|
// non-assoc array? |
| 568 |
|
if (array_values($value) === $value) { |
| 569 |
|
if (is_array($value[0])) { |
| 570 |
|
return implode(', ', array_map(array($this, 'sanitize'), $value)); |
| 571 |
|
} else { |
| 572 |
|
return '('.implode(', ', array_map(array($this, 'sanitize'), $value)).')'; |
| 573 |
|
} |