psa() or tpsa()?

User 8139ea8dbd

23-04-2008 16:54:45

It seems 'tpsa' has been changed to 'psa', but this is not mentioned in the API document (http://www.chemaxon.com/jchem/doc/guide/cartridge/cartapi.html)





Thanks.


==============





SQL> select jc_evaluate('c1ccccc1', 'psa') from dual;





JC_EVALUATE('C1CCCCC1','PSA')


-----------------------------


0





SQL> select jc_evaluate('c1ccccc1', 'psa()') from dual;





JC_EVALUATE('C1CCCCC1','PSA()')


-------------------------------


0





SQL> select jc_evaluate('c1ccccc1', 'tpsa()') from dual;


select jc_evaluate('c1ccccc1', 'tpsa()') from dual


*


ERROR at line 1:


ORA-29532: Java call terminated by uncaught Java exception:


java.rmi.ServerException: RemoteException occurred in server thread; nested


exception is:


java.rmi.RemoteException: Error while compiling expression:


tpsa()


Encountered ")" at line 1, column 6.


Was expecting one of:


";" ...


"+" ...


"-" ...


"!" ...


<STRING_LITERAL> ...


<INTEGER_LITERAL> ...


<FLOATING_POINT_LITERAL> ...


<IDENTIFIER> ...


"(" ...


ORA-06512: at "JCHEM_CART.JCHEM_CORE_PKG", line 96


ORA-06512: at "JCHEM_CART.EVALUATE_FUNC", line 19

ChemAxon e08c317633

24-04-2008 17:01:30

Hi,





tpsa() Chemical Terms function was renamed to PSA() about four years ago, even before jc_evaluate was added to JChem Cartridge.





You are right, the documentation is not correct, it lists tpsa() as available function. We will update the documentation, sorry for the inconvenience.





Regards,


Zsolt