Skip to content

Commit 70c0a36

Browse files
committed
JDK 8 correction
1 parent c64dabc commit 70c0a36

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/com/microsoft/sqlserver/jdbc/callablestatement/CallableStatementTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ public void testFourPartSyntaxCallEscapeSyntax() throws SQLException {
11871187
stmt.execute("create or alter procedure dbo.TestAdd(@Num1 int, @Num2 int, @Result int output) as begin set @Result = @Num1 + @Num2; end;");
11881188
}
11891189

1190-
try (CallableStatement cstmt = connection.prepareCall("{call %s.master.dbo.TestAdd(?,?,?)}".formatted("[" + linkedServer + "]"))) {
1190+
try (CallableStatement cstmt = connection.prepareCall("{call [" + linkedServer + "].master.dbo.TestAdd(?,?,?)}")) {
11911191
int sum = 11;
11921192
int param0 = 1;
11931193
int param1 = 10;
@@ -1198,7 +1198,7 @@ public void testFourPartSyntaxCallEscapeSyntax() throws SQLException {
11981198
assertEquals(sum, cstmt.getInt(3));
11991199
}
12001200

1201-
try (CallableStatement cstmt = connection.prepareCall("exec %s.master.dbo.TestAdd ?,?,?".formatted("[" + linkedServer + "]"))) {
1201+
try (CallableStatement cstmt = connection.prepareCall("exec [" + linkedServer + "].master.dbo.TestAdd ?,?,?")) {
12021202
int sum = 11;
12031203
int param0 = 1;
12041204
int param1 = 10;

0 commit comments

Comments
 (0)