Skip to content

Commit

Permalink
0001048: Timestamps are not exported correctly using dbexport.
Browse files Browse the repository at this point in the history
  • Loading branch information
abrougher committed Feb 16, 2013
1 parent 07570fa commit fe078a2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -483,10 +483,10 @@ public String replaceSql(String sql, BinaryEncoding encoding, Table table, Row r
newSql = newSql.replaceFirst(regex, "${curdate" + diff + "}");
} else if (type == Types.TIME) {
newSql = newSql.replaceFirst(regex,
"ts {" + quote + FormatUtils.TIME_FORMATTER.format(date) + quote + "}");
"{ts " + quote + FormatUtils.TIME_FORMATTER.format(date) + quote + "}");
} else {
newSql = newSql.replaceFirst(regex,
"ts {" + quote + FormatUtils.TIMESTAMP_FORMATTER.format(date) + quote + "}");
"{ts " + quote + FormatUtils.TIMESTAMP_FORMATTER.format(date) + quote + "}");
}
} else if (column.isOfBinaryType()) {
byte[] bytes = row.getBytes(name);
Expand Down

0 comments on commit fe078a2

Please sign in to comment.