Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Record impl-error-in-query? as released in 0.65.3 (#85587)

Chris Truter516713a32278
diff --git a/docs/developers-guide/driver-changelog.md b/docs/developers-guide/driver-changelog.md
index 611773f6473..42e84131d43 100644
--- a/docs/developers-guide/driver-changelog.md
+++ b/docs/developers-guide/driver-changelog.md
@@ -4,7 +4,7 @@ title: Driver interface changelog
# Driver Interface Changelog
-## Metabase 0.66.0
+## Metabase 0.65.3
- `metabase.driver.sql-jdbc.execute/impl-error-in-query?` `[driver exception]` identifies query errors raised while
reading rows. The default recognizes SQLState classes `21`, `22`, `23` and `42`. Override it to add vendor query
diff --git a/modules/drivers/clickhouse/test/metabase/driver/clickhouse_test.clj b/modules/drivers/clickhouse/test/metabase/driver/clickhouse_test.clj
index d457661b0f0..fe84daef1e4 100644
--- a/modules/drivers/clickhouse/test/metabase/driver/clickhouse_test.clj
+++ b/modules/drivers/clickhouse/test/metabase/driver/clickhouse_test.clj
@@ -908,6 +908,6 @@
(deftest ^:parallel clickhouse-server-errors-need-more-than-class-22-test
(mt/test-driver :clickhouse
(doseq [[message code] [["Memory limit exceeded" 241] ["Too many rows or bytes" 396]]]
- (let [e (SQLException. message "22000" code)]
+ (let [e (SQLException. ^String message "22000" (int code))]
(is (false? (#'sql-jdbc.execute/error-in-query? :clickhouse e)))
(is (true? (#'sql-jdbc.execute/error-in-query? :h2 e)))))))
diff --git a/src/metabase/driver/sql_jdbc/execute.clj b/src/metabase/driver/sql_jdbc/execute.clj
index fda67c298d9..a2995fcd6ae 100644
--- a/src/metabase/driver/sql_jdbc/execute.clj
+++ b/src/metabase/driver/sql_jdbc/execute.clj
@@ -887,7 +887,7 @@
"Whether a row-read `SQLException` identifies an error in the query or its data.
The default recognizes SQLState classes `21` (cardinality), `22` (data), `23` (integrity) and `42` (syntax or access
rule). Drivers can extend or narrow that evidence. Unknown failures return false. Cancellation is checked separately."
- {:added "0.66.0" :arglists '([driver ^SQLException e])}
+ {:added "0.65.3" :arglists '([driver ^SQLException e])}
driver/dispatch-on-initialized-driver
:hierarchy #'driver/hierarchy)