1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-07 06:36:44 +02:00

Translator: trims spaces from SQL [Closes #326]

This commit is contained in:
David Grudl
2019-10-22 19:26:24 +02:00
parent 74ba6cfd34
commit faab306418
6 changed files with 39 additions and 39 deletions

View File

@@ -151,7 +151,7 @@ final class Translator
$sql[] = '*/';
}
$sql = implode(' ', $sql);
$sql = trim(implode(' ', $sql), ' ');
if ($this->errors) {
throw new Exception('SQL translate error: ' . trim(reset($this->errors), '*'), 0, $sql);