keepLargest action problem

User f09ff22166

01-02-2007 00:22:33

The following SQL:


select jc_standardize('[Ca++].CCCCC','<?xml version="1.0" encoding="UTF-8"?><StandardizerConfiguration><Actions><Removal ID="keepOne" Method="keepLargest" Measure="atomCount"/></Actions></StandardizerConfiguration>') from dual


returns [Ca++].CCCCC.


however,


select jc_standardize('[Ca++].CCCCC','config:keepone') from dual


returns CCCCC.





I thought the xml and the acting string should have the same output.





My jchem environment:


Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production


PL/SQL Release 9.2.0.7.0 - Production


CORE 9.2.0.7.0 Production


TNS for Solaris: Version 9.2.0.7.0 - Production


NLSRTL Version 9.2.0.7.0 - Production


NLSRTL Version 9.2.0.7.0 - Production


JChem version in the database: 3.1.5


JChem version in the Tomcat server: 3.1.5


java.vm.version: 1.5.0_01-b08


java.vm.vendor: Sun Microsystems Inc.


Apache Tomcat/4.1.31


Major JDBC version in Tomcat: 1


Minor JDBC version in Tomcat: 0

ChemAxon aa7c50abf8

05-02-2007 10:36:22

This problem is fixed in both the latest JChem version of the 3.2 branch (3.2.3) and the 3.1 branch (3.1.7.1).





Please, note that the syntax of calling jc_standardize you use in your example does not conform to the documentation, but was nonetheless accepted in JChem 3.1.5. It is not accepted in later versions. The correct syntax is:





Code:
select jc_standardize('[Ca++].CCCCC','config:<?xml version="1.0" encoding="UTF-8"?><StandardizerConfiguration><Actions><Removal ID="keepOne" Method="keepLargest" Measure="atomCount"/></Actions></StandardizerConfiguration>') from dual






Notice config: preceding the xml definition.