mirror of
https://github.com/dg/dibi.git
synced 2025-08-07 22:56:35 +02:00
Translator: trims spaces from SQL [Closes #326]
This commit is contained in:
@@ -151,7 +151,7 @@ final class Translator
|
|||||||
$sql[] = '*/';
|
$sql[] = '*/';
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = implode(' ', $sql);
|
$sql = trim(implode(' ', $sql), ' ');
|
||||||
|
|
||||||
if ($this->errors) {
|
if ($this->errors) {
|
||||||
throw new Exception('SQL translate error: ' . trim(reset($this->errors), '*'), 0, $sql);
|
throw new Exception('SQL translate error: ' . trim(reset($this->errors), '*'), 0, $sql);
|
||||||
|
Reference in New Issue
Block a user