Hi everyone! I've found an annoying problem when using server-sided functions:
Function
printText is a server-side function that receives a text and simply returns it.
select printText('Hello world!') works fine, but
select printText('Hello from the world!') throws the error:
--> com.orientechnologies.orient.core.exception.OCommandExecutionException: Class 'THE' was not found in current database [ONetworkProtocolHttpDb]
2015-05-20 12:50:55:294 SEVERE Internal server error:
com.orientechnologies.orient.core.exception.OQueryParsingException: Error on parsing query
Query: world!')
------^
I'm guessing the 'from' keyword is being detected inside the argument string...
Is this a bug or feature? How do I work around it when I want to pass arbitrary text to a function (that can have or not the 'from' word) ?
Best,
cr0xfyre