Skip to content

Commit

Permalink
Fix .append() method to correctly manage quoted strings
Browse files Browse the repository at this point in the history
Resolves: #6250
  • Loading branch information
luigidellaquila committed Oct 24, 2018
1 parent 63274c3 commit 93a8d31
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package com.orientechnologies.orient.core.sql.functions.text;

import com.orientechnologies.common.io.OIOUtils;
import com.orientechnologies.orient.core.command.OCommandContext;
import com.orientechnologies.orient.core.db.record.OIdentifiable;
import com.orientechnologies.orient.core.sql.method.misc.OAbstractSQLMethod;
Expand Down Expand Up @@ -48,7 +47,7 @@ public Object execute(Object iThis, OIdentifiable iCurrentRecord, OCommandContex
final StringBuilder buffer = new StringBuilder(iThis.toString());
for (int i = 0; i < iParams.length; ++i) {
if (iParams[i] != null) {
buffer.append(OIOUtils.getStringContent(iParams[i]));
buffer.append(String.valueOf(iParams[i]));
}
}

Expand Down

0 comments on commit 93a8d31

Please sign in to comment.