You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix JDBC's SQLCommenter not taking into account semicolons (#9915)
* fix JDBC's SQLCommenter not taking into account semicolons
After adding the new always append comment feature in #9798, a customer
found a bug that was present in our SQL Commenter since a long time.
Basically, JDBC always split queries to send to the DB on the semicolon.
If a comment is after a semicolon, JDBC will still split the queries,
and return multiple ResultSet. This provoked exceptions like this one:
```
org.postgresql.util.PSQLException: Multiple ResultSets were returned by
the query
```
SDBM-2100
* replace query trimming with manual iteration over query in SQL Commenter
* improve performance of the detection of semicolon in the SQL commenter
0 commit comments