Permalink
Browse files

0000903: dbexport not replacing ? in cases

  • Loading branch information...
chenson42 committed Nov 8, 2012
1 parent f508aee commit 3538e1719d8fa8d8e1243b8cf71ad69c87dce6f0
@@ -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) {
@@ -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");

0 comments on commit 3538e17

Please sign in to comment.