Skip to content

Commit 5036edb

Browse files
authored
fix: remove invalid try catch (#248)
1 parent 2c644c5 commit 5036edb

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

src/Client/ClickHouseClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function selectWithParams(string $query, array $params, Format $outputFor
7070
* @throws CannotInsert
7171
* @throws ClientExceptionInterface
7272
* @throws ServerError
73+
* @throws UnsupportedParamType
7374
*/
7475
public function insert(string $table, array $values, array|null $columns = null, array $settings = []): void;
7576

src/Client/PsrClickHouseClient.php

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,15 @@ static function (array $row) use (&$pN, $types): string {
130130
),
131131
);
132132

133-
try {
134-
$this->executeRequest(
135-
<<<CLICKHOUSE
136-
INSERT INTO $table
137-
$columnsSql
138-
VALUES $valuesSql
139-
CLICKHOUSE,
140-
params: $params,
141-
settings: $settings,
142-
);
143-
} catch (UnsupportedParamType) {
144-
absurd();
145-
}
133+
$this->executeRequest(
134+
<<<CLICKHOUSE
135+
INSERT INTO $table
136+
$columnsSql
137+
VALUES $valuesSql
138+
CLICKHOUSE,
139+
params: $params,
140+
settings: $settings,
141+
);
146142

147143
return;
148144
}

0 commit comments

Comments
 (0)