diff --git a/src/ClickHouseStatement.php b/src/ClickHouseStatement.php index e10237f..69c9e4e 100644 --- a/src/ClickHouseStatement.php +++ b/src/ClickHouseStatement.php @@ -48,7 +48,7 @@ class ClickHouseStatement implements Statement public function __construct(Client $client, string $statement, AbstractPlatform $platform) { $this->client = $client; - $this->statement = $statement; + $this->statement = trim($statement); $this->platform = $platform; }