Hi,

I have created an issue, the link is 
https://github.com/orientechnologies/orientdb/issues/2415

My Best,
Hung Tran

On Friday, May 30, 2014 2:02:48 PM UTC+7, Artem Orobets wrote:
>
> Hi, 
>
> Sorry seems the syntax you originally posted is correct.
> For some reason parameters are disappear from the OFunction. Looks like a 
> bug. 
> Could you create a ticket to track the issue?
>
> Best regards,
> Artem Orobets
>
> * Orient Technologiesthe Company behind OrientDB*
>  
>
> 2014-05-30 7:51 GMT+03:00 odbuser <[email protected] <javascript:>>:
>
>> This syntax doesn't work either.  It doesn't create the parameters and 
>> it's created as an SQL function.
>>
>>
>> On Thursday, May 29, 2014 7:56:30 AM UTC-4, Artem Orobets wrote:
>>
>>> Hi Hung,
>>>
>>> Hmm.. seems that command is not documented. I'll create an issue to 
>>> document it.
>>>
>>> as for syntax, seems square brackets should not be used, try this:
>>>  create function test "return a + b" PARAMETERS a,b IDEMPOTENT true 
>>> LANGUAGE Javascript
>>>
>>> Best regards,
>>> Artem Orobets
>>>
>>> * Orient Technologiesthe Company behind OrientDB*
>>>  
>>>
>>> 2014-05-29 12:14 GMT+03:00 Hung Tran <[email protected]>:
>>>
>>>>  Hi,
>>>>
>>>> I have read entire the document, and look in forum, but i cannot see a 
>>>> way to create a JS function from JavaAPI, or from Console. I know we could 
>>>> create it from Studio, however I need to do it with JavaAPI, or Console. 
>>>>
>>>> I have found the syntax to create it, but there is no example or any 
>>>> explanation about it.
>>>> "
>>>> CREATE FUNCTION <name> <code> [PARAMETERS [<comma-separated list of 
>>>> parameters' name>]] [IDEMPOTENT true|false] [LANGUAGE <language>]
>>>> "
>>>>
>>>> orientdb {test}> create function test "return a + b" PARAMETERS [a,b] 
>>>> IDEMPOTENT true LANGUAGE Javascript
>>>>
>>>> => it created a SQL function without parameter instead of a JS function 
>>>> with (a,b) parameters
>>>>
>>>> Any help will be very appreciated!
>>>>
>>>> My Best,
>>>> Hung Tran
>>>>
>>>> -- 
>>>>
>>>> --- 
>>>> 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.
>>>>
>>>
>>>  -- 
>>
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
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