Hello!
Recently I've upgraded my installation of CMDBuild from 1.5 to version 2.1.4 and found that some CQL syntax seems to have changed.
To filter some references in my DB I was using (in 1.5) CQL filters like that:
from HardwareModel where Vendor = {client:Vendor} & [ModelType2HardwareModel].objects(Code BEGIN 'Server-')
It was working perfectly but after migration to 2.1.4 I constantly get the error while opening any card with this filter for edit:
Call: services/json/management/modcard/getcardlistshort?_dc=1377233775853
--------------------------------------------------------------------------
Error: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar
The error message is followed by huge SQL query and another message (translated from Russian):
nested exception is org.postgresql.util.PSQLException: ERROR: column ModelType.Code not exists.
When I tried to replace Code by Id it started to work fine. But I need explicitly the Code field to filter on.
I assume the Code field exists in any CMDBuild class derived from "Class" class. So I think this is a bug. Please, check this problem as it really degrades the usability of software.
Thank you!