Skip to content

Commit

Permalink
support timezone for table copy
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jan 27, 2012
1 parent 75dc421 commit dd1f3c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Expand Up @@ -72,7 +72,7 @@ public static void setValues(PreparedStatement ps, Object[] args, int[] argTypes
ILobHandler lobHandler) throws SQLException {
for (int i = 1; i <= args.length; i++) {
Object arg = args[i - 1];
int argType = argTypes != null && argTypes.length > i ? argTypes[i - 1] : UNKNOWN_TYPE;
int argType = argTypes != null && argTypes.length > i-1 ? argTypes[i - 1] : UNKNOWN_TYPE;
if (argType == Types.BLOB && lobHandler != null) {
lobHandler.setBlobAsBytes(ps, i, (byte[]) arg);
} else if (argType == Types.CLOB && lobHandler != null) {
Expand Down
Expand Up @@ -58,6 +58,9 @@ public static void main(String[] args) {
} catch (IllegalStateException ex) {
logger.error(ex.getMessage());
System.exit(-1);
} catch (Exception ex) {
logger.error(ex);
System.exit(-1);
}
}

Expand Down

0 comments on commit dd1f3c2

Please sign in to comment.