Обсуждение: [pgjdbc/pgjdbc] c2885d: fix: IndexOutOfBounds on preparedmultistatement w...
[pgjdbc/pgjdbc] c2885d: fix: IndexOutOfBounds on preparedmultistatement w...
От
Vladimir Sitnikov
Дата:
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.