diff --git a/src/ClickHouseStatement.php b/src/ClickHouseStatement.php index 0a7ce3c..dbf356e 100644 --- a/src/ClickHouseStatement.php +++ b/src/ClickHouseStatement.php @@ -129,7 +129,7 @@ public function execute($params = null): Result ) ); } catch (ClickHouseException $exception) { - throw new Exception(previous: $exception, sqlState: $exception->getMessage()); + throw new Exception(previous: $exception, message: $exception->getMessage()); } }