@@ -178,7 +178,7 @@ |
||
178 | 178 | */ |
179 | 179 | public function truncateTables(array $tables) |
180 | 180 | { |
181 | - $this->driver->execute('TRUNCATE ' . implode(', ', array_map(function ($table) { |
|
181 | + $this->driver->execute('TRUNCATE ' . implode(', ', array_map(function($table) { |
|
182 | 182 | return $this->driver->escapeTableName($table); |
183 | 183 | }, $tables))); |
184 | 184 | return true; |
@@ -18,9 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | protected function limitToOne(string $table, string $query, string $where) |
20 | 20 | { |
21 | - return (preg_match('~^INTO~', $query) ? $this->driver->getLimitClause($query, $where, 1, 0) : |
|
22 | - " $query" . ($this->driver->isView($this->driver->tableStatusOrName($table)) ? $where : |
|
23 | - " WHERE ctid = (SELECT ctid FROM " . $this->driver->escapeTableName($table) . $where . ' LIMIT 1)')); |
|
21 | + return (preg_match('~^INTO~', $query) ? $this->driver->getLimitClause($query, $where, 1, 0) : " $query" . ($this->driver->isView($this->driver->tableStatusOrName($table)) ? $where : " WHERE ctid = (SELECT ctid FROM " . $this->driver->escapeTableName($table) . $where . ' LIMIT 1)')); |
|
24 | 22 | } |
25 | 23 | |
26 | 24 | /** |