From 82546f7bb115e142624c428106149e3ec386cc9f Mon Sep 17 00:00:00 2001 From: Ananya Garg Date: Mon, 9 Dec 2024 21:08:38 +0530 Subject: [PATCH] Fixed pipeline failure --- .../jdbc/unit/statement/StatementTest.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/test/java/com/microsoft/sqlserver/jdbc/unit/statement/StatementTest.java b/src/test/java/com/microsoft/sqlserver/jdbc/unit/statement/StatementTest.java index 2fb8de956..f82ee43c6 100644 --- a/src/test/java/com/microsoft/sqlserver/jdbc/unit/statement/StatementTest.java +++ b/src/test/java/com/microsoft/sqlserver/jdbc/unit/statement/StatementTest.java @@ -1260,25 +1260,6 @@ public void testBigDecimalPrecision() throws SQLException { } } - @Test - public void testRegisterOutParameterWithDecimalException() throws SQLException { - try (Connection conn = getConnection()) { - String sql = "{call some_procedure(?)}"; - CallableStatement stmt = conn.prepareCall(sql); - - stmt.registerOutParameter(1, Types.DECIMAL); - SQLServerCallableStatement sqlServerStmt = (SQLServerCallableStatement) stmt; - - try { - sqlServerStmt.registerOutParameter(1, Types.DECIMAL); - fail("Expected SQLServerException to be thrown"); - } catch (SQLServerException e) { - assertTrue(e.getCause() instanceof SQLException); - assertEquals("Error fetching scale", e.getCause().getMessage()); - } - } - } - @AfterEach public void terminate() throws Exception { try (Connection con = getConnection(); Statement stmt = con.createStatement()) {