[#5180] Added issue reference to comment

This commit is contained in:
lukaseder 2016-04-05 11:23:17 +02:00
parent 854a70fd2c
commit 7329d23b7a

View File

@ -1485,8 +1485,8 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
if (string == null)
return null;
// [#4338] PostgreSQL is more lenient regarding the offset format
if (string.lastIndexOf('+') == string.length() - 3)
// [#4338] [#5180] PostgreSQL is more lenient regarding the offset format
if (string.lastIndexOf('+') == string.length() - 3 || string.lastIndexOf('-') == string.length() - 3)
string = string + ":00";
return OffsetTime.parse(string);
@ -1496,8 +1496,8 @@ public class DefaultBinding<T, U> implements Binding<T, U> {
if (string == null)
return null;
// [#4338] PostgreSQL is more lenient regarding the offset format
if (string.lastIndexOf('+') == string.length() - 3)
// [#4338] [#5180] PostgreSQL is more lenient regarding the offset format
if (string.lastIndexOf('+') == string.length() - 3 || string.lastIndexOf('-') == string.length() - 3)
string = string + ":00";
// [#4338] SQL supports the alternative ISO 8601 date format, where a