This commit is contained in:
Gianpaolo Coro 2013-11-12 14:16:28 +00:00
parent 81131b4369
commit 1708eaca43
1 changed files with 3 additions and 1 deletions

View File

@ -174,7 +174,9 @@ public class DatabaseUtils {
String[] row = values.get(i);
sb.append("(");
for (int j=0;j<row.length;j++){
sb.append("'"+row[j].replaceAll("^'", "").replaceAll("'$", "")+"'");
String preprow = row[j].replaceAll("^'", "").replaceAll("'$", "");
preprow=preprow.replace("'", ""+(char)96);
sb.append("'"+preprow+"'");
if (j<row.length-1)
sb.append(",");
}