[pgjdbc/pgjdbc] c2885d: fix: IndexOutOfBounds on prepared multistatement w...

Vladimir Sitnikov <[email protected]>
Newsgroups gmane.comp.db.postgresql.jdbc
Message-ID <5b73df847b6f_1e1e2b0990868ed04174d@hookshot-fe-7191cb1.cp1-iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: c2885dd0cfc793f81e5dd3ed2300bb32476eb14a
      https://github.com/pgjdbc/pgjdbc/commit/c2885dd0cfc793f81e5dd3ed2300bb32476eb14a
  Author: Vladimir Sitnikov <[email protected]>
  Date:   2018-08-15 (Wed, 15 Aug 2018)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/core/Parser.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc2/PreparedStatementTest.java
    M pgjdbc/src/test/java/org/postgresql/test/jdbc3/CompositeQueryParseTest.java

  Log Message:
  -----------
  fix: IndexOutOfBounds on prepared multistatement with insert values

Re-initialize "isValuesFound and isCurrentReWriteCompatible" variables so multi-statement
prepared sql like INSERT INTO inttable(a) VALUES (?);... could be parsed properly.

Previously it identified the second statement as multi-values since isValuesFound was not reset

closes #1289



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.