Skip to content

Commit

Permalink
Fixed pipeline failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Ananya2 authored Dec 9, 2024
1 parent 1506f62 commit 82546f7
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 82546f7

Please sign in to comment.