Project

General

Profile

« Previous | Next » 

Revision c754177e

Added by Andreas Müller over 3 years ago

ref #6581 fix detail handling with single quote character

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/update/SchemaUpdaterStepBase.java
153 153
	}
154 154

  
155 155
    protected String nullSafeParam(String param) {
156
        return param == null ? "NULL" : "'" + param + "'";
156
        return param == null ? "NULL" : "'" + param.replace("'", "''") + "'";
157 157
    }
158 158

  
159 159
    protected Integer nullSafeInt(ResultSet rs, String columnName) throws SQLException {

Also available in: Unified diff