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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user