Skip to content

Commit 67064f5

Browse files
authored
Drop stored procedure if it exists in init()
1 parent 222dddc commit 67064f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/com/microsoft/sqlserver/jdbc/unit/statement/BigDecimalPrecisionTest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ public class BigDecimalPrecisionTest extends AbstractTest {
2727
@BeforeEach
2828
public void init() throws SQLException {
2929
try (Connection connection = getConnection()) {
30+
String dropProcedureSQL = "DROP PROCEDURE IF EXISTS " + procName1 + ", " + procName2;
31+
stmt.execute(dropProcedureSQL);
32+
3033
String createProcedureSQL1 = "CREATE PROCEDURE " + procName1 + "\n" +
3134
" @big_decimal_type decimal(15, 3),\n" +
3235
" @big_decimal_type_o decimal(15, 3) OUTPUT\n" +
@@ -41,7 +44,6 @@ public void init() throws SQLException {
4144
"BEGIN\n" +
4245
" SET @big_decimal_type_o = @big_decimal_type;\n" +
4346
"END;";
44-
4547
try (Statement stmt = connection.createStatement()) {
4648
stmt.execute(createProcedureSQL1);
4749
stmt.execute(createProcedureSQL2);

0 commit comments

Comments
 (0)