Skip to content

Commit

Permalink
updated query to TestUtils.dropProcedureIfExists()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ananya2 authored Jan 27, 2025
1 parent 2f3ea63 commit ee65c4b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2708,10 +2708,11 @@ public class BigDecimalPrecisionTest {
@BeforeEach
public void init() throws SQLException {
try (Connection connection = getConnection()) {
String dropProcedureSQL = "DROP PROCEDURE IF EXISTS " + procName1 + ", " + procName2 + ", "
+ procNameMaxScale + ", " + procNameMaxPrecision;
try (Statement stmt = connection.createStatement()) {
stmt.execute(dropProcedureSQL);
TestUtils.dropProcedureIfExists(procName1, stmt);
TestUtils.dropProcedureIfExists(procName2, stmt);
TestUtils.dropProcedureIfExists(procNameMaxScale, stmt);
TestUtils.dropProcedureIfExists(procNameMaxPrecision, stmt);
}

String createProcedureSQL1 = "CREATE PROCEDURE " + procName1 + "\n"
Expand Down

0 comments on commit ee65c4b

Please sign in to comment.