From 93a8d317c5e7e318b57f89a6a147db2f84ba7399 Mon Sep 17 00:00:00 2001 From: Luigi Dell'Aquila Date: Wed, 24 Oct 2018 08:22:27 +0200 Subject: [PATCH] Fix .append() method to correctly manage quoted strings Resolves: #6250 --- .../orient/core/sql/functions/text/OSQLMethodAppend.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/com/orientechnologies/orient/core/sql/functions/text/OSQLMethodAppend.java b/core/src/main/java/com/orientechnologies/orient/core/sql/functions/text/OSQLMethodAppend.java index e4ebc41633e..8e5d9752af7 100644 --- a/core/src/main/java/com/orientechnologies/orient/core/sql/functions/text/OSQLMethodAppend.java +++ b/core/src/main/java/com/orientechnologies/orient/core/sql/functions/text/OSQLMethodAppend.java @@ -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; @@ -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])); } }