Navigation Menu

Skip to content

Commit

Permalink
fix for oracle timestamp with timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Dec 28, 2011
1 parent 9147af6 commit f17af28
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -297,10 +297,10 @@ private static void setValue(PreparedStatement ps, int paramIndex, int sqlType,
} else if (sqlType == Types.TIMESTAMP) {
if (inValue instanceof java.util.Date) {
if (inValue instanceof java.sql.Timestamp) {
ps.setTimestamp(paramIndex, (java.sql.Timestamp) inValue);
ps.setTimestamp(paramIndex, (java.sql.Timestamp) inValue, Calendar.getInstance());
} else {
ps.setTimestamp(paramIndex,
new java.sql.Timestamp(((java.util.Date) inValue).getTime()));
new java.sql.Timestamp(((java.util.Date) inValue).getTime()), Calendar.getInstance());
}
} else if (inValue instanceof Calendar) {
Calendar cal = (Calendar) inValue;
Expand Down

0 comments on commit f17af28

Please sign in to comment.