String stmt = "create link metalink type link from xyz.fileName to 
metainfo.fileName";
OCommandSQL ocmd = new OCommandSQL(stmt);
Object result = db.command(ocmd).execute();
System.out.println("result = " + result);

result = 48696

it's record count of xyz class.

2014년 7월 11일 금요일 오후 7시 48분 45초 UTC+9, Lvc@ 님의 말:
>
> Seems a console problem on display of the result. When you execute it from 
> Java, what's the result of the execute() method?
>
> Lvc@
>
>
> On 11 July 2014 08:41, 창영 [email protected] <javascript:> <[email protected] 
> <javascript:>> wrote:
>
>> same error in orientdb1.7.3
>>
>>
>> [ console.sh : fail ]
>>
>> orientdb {dms2}> create link testlink type linklist from xyz.fileName to 
>> metainfo.fileName inverse
>> [          
>> Error: 
>> com.orientechnologies.orient.core.exception.OCommandExecutionException: 
>> Error on execution of command: sql.create link testlink type linklist from 
>> xyz.fileName to metainfo.fileName inverse
>>  
>> Error: java.util.UnknownFormatConversionException: Conversion = '%'
>>
>>
>> [ execute java program(eclipse) : success ]
>>
>> String stmt = "create link testlink type linklist from xyz.fileName to 
>> metainfo.fileName inverse";
>>  OCommandSQL ocmd = new OCommandSQL(stmt);
>> db.command(ocmd).execute();
>>
>> two of them using same jar library.. 
>> i don't know how copy that full stack log in console mode... 
>> there's only error log in console mode..
>>
>>
>> 2014년 1월 3일 금요일 오전 12시 54분 10초 UTC+9, Andrey Lomakin 님의 말:
>>>
>>> Could you provide full stack trace by doing what I suggested, without 
>>> full stack trace it is hard to do something.
>>>
>>> Also did you connect directly to plocal (from console) or using remote 
>>> protocol ?
>>>
>>>
>>> On Thu, Jan 2, 2014 at 4:47 PM, Alessandro Ranocchini <[email protected]
>>> > wrote:
>>>
>>>> If i execute that same query in the "visual" studio it works. But it 
>>>>> still doesn't work if executed in the console! that's really strange!
>>>>>  
>>>>  -- 
>>>>  
>>>> --- 
>>>> 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/groups/opt_out.
>>>>
>>>
>>>
>>>
>>> -- 
>>> Best regards,
>>> Andrey Lomakin.
>>>
>>> Orient Technologies
>>> the Company behind OrientDB
>>>
>>>   -- 
>>
>> --- 
>> 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