From 01fdb5d3820eb16d0c853080c5ce885dfe9f855e Mon Sep 17 00:00:00 2001 From: Valeriy Vyrva Date: Thu, 16 Jul 2026 15:33:58 +0300 Subject: [PATCH] Reuse existing method with same exception message Signed-off-by: Valeriy Vyrva --- src/main/java/org/opensearch/jdbc/StatementImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/jdbc/StatementImpl.java b/src/main/java/org/opensearch/jdbc/StatementImpl.java index 1b4b335..9d92aaa 100644 --- a/src/main/java/org/opensearch/jdbc/StatementImpl.java +++ b/src/main/java/org/opensearch/jdbc/StatementImpl.java @@ -85,7 +85,7 @@ protected ResultSetImpl buildResultSet(QueryResponse queryResponse) throws SQLEx @Override public int executeUpdate(String sql) throws SQLException { checkOpen(); - throw new SQLFeatureNotSupportedException("Updates are not supported."); + throw updatesNotSupportedException(); } @Override