Skip to content

Commit c05521e

Browse files
authored
Pstmt objects should be reusable (#2482)
1 parent 4c6227a commit c05521e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/main/java/com/microsoft/sqlserver/jdbc/SQLServerPreparedStatement.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,13 +2510,6 @@ private void checkValidColumns(TypeInfo ti) throws SQLServerException {
25102510

25112511
private void checkAdditionalQuery() {
25122512
while (checkAndRemoveCommentsAndSpace(true)) {}
2513-
2514-
// At this point, if localUserSQL is not empty (after removing all whitespaces, semicolons and comments), we
2515-
// have a
2516-
// new query. reject this.
2517-
if (localUserSQL.length() > 0) {
2518-
throw new IllegalArgumentException(SQLServerException.getErrString("R_multipleQueriesNotAllowed"));
2519-
}
25202513
}
25212514

25222515
private String parseUserSQLForTableNameDW(boolean hasInsertBeenFound, boolean hasIntoBeenFound,

0 commit comments

Comments
 (0)