Merge pull request #8222 from berngp/bugfix/parse-int-psql-date

Resolves 8221: StringIndexOutOfBoundsException parsing PSQL Timestamp
This commit is contained in:
Lukas Eder 2019-01-15 22:05:43 +01:00 committed by GitHub
commit 4fd86b411e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2617,7 +2617,7 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
int pos = position[0];
int length;
for (length = 0; length < maxLength && length < string.length(); length++) {
for (length = 0; length < maxLength && (pos + length) < string.length(); length++) {
int digit = string.charAt(pos + length) - '0';
if (digit >= 0 && digit < 10)