Skip to content

Commit 43d268c

Browse files
authored
Pstmt objects should be reusable (#2482) (#2493)
1 parent 64d530e commit 43d268c

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
@@ -2681,13 +2681,6 @@ private void checkValidColumns(TypeInfo ti) throws SQLServerException {
26812681

26822682
private void checkAdditionalQuery() {
26832683
while (checkAndRemoveCommentsAndSpace(true)) {}
2684-
2685-
// At this point, if localUserSQL is not empty (after removing all whitespaces, semicolons and comments), we
2686-
// have a
2687-
// new query. reject this.
2688-
if (localUserSQL.length() > 0) {
2689-
throw new IllegalArgumentException(SQLServerException.getErrString("R_multipleQueriesNotAllowed"));
2690-
}
26912684
}
26922685

26932686
private String parseUserSQLForTableNameDW(boolean hasInsertBeenFound, boolean hasIntoBeenFound,

0 commit comments

Comments
 (0)