Merge pull request #8222 from berngp/bugfix/parse-int-psql-date
Resolves 8221: StringIndexOutOfBoundsException parsing PSQL Timestamp
This commit is contained in:
commit
4fd86b411e
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user