Skip to content

Commit e3bf056

Browse files
authored
Refactor SQL table creation string formatting
1 parent 49e7fe3 commit e3bf056

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3480,10 +3480,9 @@ public void testBatchUpdateCount() throws SQLException {
34803480
TestUtils.dropTableIfExists(testTable, stmt);
34813481

34823482
// Create table
3483-
String createTableSql = String.format("""
3484-
CREATE TABLE %s (
3485-
id int primary key, column_name varchar(100))
3486-
""", testTable);
3483+
String createTableSql = "CREATE TABLE " + testTable + " ("
3484+
+ " id int primary key, column_name varchar(100))";
3485+
34873486

34883487
stmt.execute(createTableSql);
34893488

0 commit comments

Comments
 (0)