fix export error for non-unicode numbers (#3444)
This commit is contained in:
parent
0e56dd8bc2
commit
15791b732c
|
@ -192,7 +192,7 @@ public class ExportBackupService extends Service {
|
||||||
final String value = cursor.getString(i);
|
final String value = cursor.getString(i);
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
builder.append("NULL");
|
builder.append("NULL");
|
||||||
} else if (value.matches("\\d+")) {
|
} else if (value.matches("[0-9]+")) {
|
||||||
builder.append(value);
|
builder.append(value);
|
||||||
} else {
|
} else {
|
||||||
DatabaseUtils.appendEscapedSQLString(builder, value);
|
DatabaseUtils.appendEscapedSQLString(builder, value);
|
||||||
|
@ -349,4 +349,4 @@ public class ExportBackupService extends Service {
|
||||||
return builder.build();
|
return builder.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue