`CachedRowSetWriter` is searching for **where** clauses within SQL queries. 
However, these UPDATE and SELECT queries are manually re-constructed, and will 
not contain **where** at that point that the search occurs. Thus, both 
occurrences of these checks are incorrect, and their associated comments are 
misleading. They should be removed to prevent erroneous stripping when an 
identifier, such as a table name, contains the substring "where".

Testing done with stub classes.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - init

Changes: https://git.openjdk.org/jdk/pull/33519/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33519&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8394143
  Stats: 182 lines in 2 files changed: 142 ins; 40 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/33519.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33519/head:pull/33519

PR: https://git.openjdk.org/jdk/pull/33519

Reply via email to