Skip to content

Commit

Permalink
format sql to remove spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Dec 29, 2007
1 parent 787eb98 commit cab8671
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -28,6 +28,7 @@
import java.util.Calendar;
import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jumpmind.symmetric.db.IDbDialect;
Expand Down Expand Up @@ -183,7 +184,7 @@ public Object doInConnection(Connection conn) throws SQLException, DataAccessExc
}

private String cleanSql(String sql) {
return sql.replace('\r', ' ').replace('\n', ' ').replace("\\w+", " ").trim();
return StringUtils.replace(StringUtils.replace(StringUtils.replace(sql, "\r", " "),"\n"," "), " ", "");
}

public void setOtherPurgeSql(String[] purgeSql) {
Expand Down

0 comments on commit cab8671

Please sign in to comment.