From fc3efe3d80469b91269bc67a6c6a4fc829051745 Mon Sep 17 00:00:00 2001 From: Valentin AUCLERC Date: Sun, 2 Mar 2025 20:12:09 +0100 Subject: [PATCH] Provide message variable instead of sqlState --- src/ClickHouseStatement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }