fix export error for non-unicode numbers (#3444)

This commit is contained in:
ialokim 2019-04-28 12:46:49 +02:00 committed by Daniel Gultsch
parent 0e56dd8bc2
commit 15791b732c

View file

@ -192,7 +192,7 @@ public class ExportBackupService extends Service {
final String value = cursor.getString(i);
if (value == null) {
builder.append("NULL");
} else if (value.matches("\\d+")) {
} else if (value.matches("[0-9]+")) {
builder.append(value);
} else {
DatabaseUtils.appendEscapedSQLString(builder, value);