Skip to content

Commit

Permalink
0000903: dbexport not replacing ? in cases
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Nov 8, 2012
1 parent f508aee commit 3538e17
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -450,8 +450,6 @@ public String replaceSql(String sql, BinaryEncoding encoding, Column[] metaData,
+ row.getString(name));
throw ex;
}
} else if (column.isOfNumericType()) {
newSql = newSql.replaceFirst(regex, row.getString(name));
} else if (type == Types.DATE || type == Types.TIMESTAMP || type == Types.TIME) {
Date date = row.getDateTime(name);
if (useVariableDates) {
Expand All @@ -475,6 +473,8 @@ public String replaceSql(String sql, BinaryEncoding encoding, Column[] metaData,
newSql = newSql.replaceFirst(regex, quote
+ new String(Hex.encodeHex(bytes)) + quote);
}
} else {
newSql = newSql.replaceFirst(regex, row.getString(name));
}
} else {
newSql = newSql.replaceFirst(regex, "null");
Expand Down

0 comments on commit 3538e17

Please sign in to comment.