[pgjdbc/pgjdbc] c2885d: fix: IndexOutOfBounds on preparedmultistatement w... - Mailing list pgsql-jdbc

From Vladimir Sitnikov
Subject [pgjdbc/pgjdbc] c2885d: fix: IndexOutOfBounds on preparedmultistatement w...
Date
Msg-id 5b73df847b6f_1e1e2b0990868ed04174d@hookshot-fe-7191cb1.cp1-iad.github.net.mail
Whole thread Raw
List pgsql-jdbc
Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: c2885dd0cfc793f81e5dd3ed2300bb32476eb14a
      https://github.com/pgjdbc/pgjdbc/commit/c2885dd0cfc793f81e5dd3ed2300bb32476eb14a
  Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
  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.

pgsql-jdbc by date:

Previous
From: Roger Pack
Date:
Subject: isvalid(5) can hang forever
Next
From: "Wegrzyn, Artur"
Date:
Subject: Java 11 Compatibility check postgresqljdbc41.jar