Fix .append() method to correctly manage quoted strings
Resolves:
*/
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 class OSQLMethodAppend extends OAbstractSQLMethod {
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]));
}
}
