From ed981ca566028afcd12ecf670a4b83a05fdc8423 Mon Sep 17 00:00:00 2001 From: Terry Chow Date: Wed, 24 Jul 2024 13:28:09 -0700 Subject: [PATCH] Pstmt objects should be reusable --- .../sqlserver/jdbc/SQLServerPreparedStatement.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java index 651505aa2..d32d75ac8 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java @@ -2681,13 +2681,6 @@ private void checkValidColumns(TypeInfo ti) throws SQLServerException { private void checkAdditionalQuery() { while (checkAndRemoveCommentsAndSpace(true)) {} - - // At this point, if localUserSQL is not empty (after removing all whitespaces, semicolons and comments), we - // have a - // new query. reject this. - if (localUserSQL.length() > 0) { - throw new IllegalArgumentException(SQLServerException.getErrString("R_multipleQueriesNotAllowed")); - } } private String parseUserSQLForTableNameDW(boolean hasInsertBeenFound, boolean hasIntoBeenFound,