Skip to content

Commit

Permalink
0001511: Firebird TIME fields don't synchronize properly because of t…
Browse files Browse the repository at this point in the history
…he fractional seconds component
  • Loading branch information
chenson42 committed Dec 30, 2013
1 parent 79e2c98 commit f4e171b
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -536,7 +536,11 @@ public java.util.Date parseDate(int type, String value, boolean useVariableDates
return FormatUtils.parseDate(value, FormatUtils.TIMESTAMP_PATTERNS);
}
} else if (type == Types.TIME) {
return FormatUtils.parseDate(value, FormatUtils.TIME_PATTERNS);
if (value.indexOf(".") == 8) {
return Timestamp.valueOf("1970-01-01 " + value);
} else {
return FormatUtils.parseDate(value, FormatUtils.TIME_PATTERNS);
}
} else {
return FormatUtils.parseDate(value, FormatUtils.TIMESTAMP_PATTERNS);
}
Expand All @@ -550,7 +554,7 @@ public java.util.Date parseDate(int type, String value, boolean useVariableDates
return null;
}
}

public boolean isLob(int type) {
return isClob(type) || isBlob(type);
}
Expand Down

0 comments on commit f4e171b

Please sign in to comment.