Project

General

Profile

Revision c754177e

IDc754177ea30ff3fc4b654895c740b72f2f5fef57
Parent cc651bea
Child e29ed013

Added by Andreas Müller 4 months 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

Add picture from clipboard (Maximum size: 40 MB)