Hello, I have similar issue  where the desc field is a text box where user 
can add any text. I run into issues where the function breaks when there 
are special characters in desc like single or double quot's , / \ # ! $ % 
etc.
is there a way or inbuilt function that will take care or 
these special chars ?  you can use same function code to reproduce the 
issue with desc with different special characters .     

On Friday, August 19, 2016 at 6:32:49 PM UTC+5:30, [email protected] 
wrote:
>
> Hi,
> you could use
>
> var db = orient.getGraph();
> var id= 1000;
> var desc = "Bollywood Superstar Akshay Kumar, Ileana D'Cruz"
> var vkQuery = 'CREATE VERTEX post CONTENT {"id":'+ id+',"desc":"'+ desc +
> '"}'; 
> var vkInsert = db.command("sql",vkQuery);
>
>
> Best regards,
> Alessandro
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to