Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tkyc committed May 15, 2024
1 parent 34c5c85 commit b9ac591
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1188,8 +1188,7 @@ public void testFourPartSyntaxCallEscapeSyntax() throws SQLException {
stmt.execute(
"create or alter procedure dbo.TestAdd(@Num1 int, @Num2 int, @Result int output) as begin set @Result = @Num1 + @Num2; end;");

stmt.execute(
"create or alter procedure dbo.TestReturn(@Num1 int) as select @Num1 return @Num1*3 ");
stmt.execute("create or alter procedure dbo.TestReturn(@Num1 int) as select @Num1 return @Num1*3 ");
}

try (CallableStatement cstmt = connection
Expand All @@ -1215,7 +1214,8 @@ public void testFourPartSyntaxCallEscapeSyntax() throws SQLException {
assertEquals(sum, cstmt.getInt(3));
}

try (CallableStatement cstmt = connection.prepareCall("{? = call [" + linkedServer + "].master.dbo.TestReturn(?)}")) {
try (CallableStatement cstmt = connection
.prepareCall("{? = call [" + linkedServer + "].master.dbo.TestReturn(?)}")) {
int expected = 15;
cstmt.registerOutParameter(1, java.sql.Types.INTEGER);
cstmt.setInt(2, 5);
Expand Down

0 comments on commit b9ac591

Please sign in to comment.