jcman, SDF and mixed-case data field names?

User 6cb834d88c

01-09-2005 15:40:48

Versions: Mac OS X 10.4.2, Postgresql 8.0.3, jcman 3.1





I'm trying to import records from an SD file. Each record has a data header with a field name of (for example) 'gumby'. If the field name is all-uppercase or all-lowercase, the import succeeds -- the values in the structure table are non-null. If the field name is mixed-case, the values in the structure table are null.





Here are examples of usage:
Quote:
# This works:


jcman a structure sample_lowercase.sdf --connect "imported_gumby=gumby"





# This works:


jcman a structure sample_uppercase.sdf --connect "imported_gumby=GUMBY"





# This does not work:


jcman a structure sample_titled.sdf --connect "imported_gumby=Gumby"


In all cases, all structures are imported successfully. But in the last case only, all values for structure.imported_gumby are null.





In all cases, the Postgresql data type for structure.imported_gumby is 'text'.
Quote:
jcman t structure


...


21 imported_gumby text


What am I doing wrong? Thanks for the help.

ChemAxon 9c0afc9aaf

02-09-2005 12:11:10

Hi,





This is a bug which is also present in the chemaxon.jchem.db.Importer API class.





We have fixed it, the following releases of JChem will be treat data fields totally case-insensitively.





If you need a solution sooner, I suggest to rename the data fields in your file as a workaround.





Thank you for the bug report.





Best regards,





Szilard