- writeSubmitResultIntoFile method modified removing special characters using regular expressions in order to write data in a file correctly.
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-access/DatabasesResourcesManager@101895 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
885a219fe1
commit
167f0c1715
|
@ -1244,6 +1244,13 @@ public class DatabaseManagement {
|
||||||
// + original);
|
// + original);
|
||||||
|
|
||||||
String parsed = "" + row[j];
|
String parsed = "" + row[j];
|
||||||
|
|
||||||
|
//remove some special character using regular expressions
|
||||||
|
String regex1 = "[\"'`]";
|
||||||
|
String regex2 = "[ \\t\\n\\r\\f\\v]";
|
||||||
|
|
||||||
|
parsed = parsed.replaceAll(regex1, "").replaceAll(regex2, " ");
|
||||||
|
|
||||||
if (original != "") {
|
if (original != "") {
|
||||||
// convert database datatypes to Java datatypes
|
// convert database datatypes to Java datatypes
|
||||||
if (DataTypeColumns == null
|
if (DataTypeColumns == null
|
||||||
|
|
Loading…
Reference in New Issue