qorelanguage / qore

Qore Programming Language
GNU General Public License v2.0
60 stars 10 forks source link

Searching with the ServiceNowRestDataProvider is broken #4759

Closed davidnich closed 1 year ago

davidnich commented 1 year ago

ex:

Unexpected exception: WHERE-ERROR at /export/home2/dnichols/src/qore/git/qore/qlib/ServiceNowRestDataProvider/ServiceNowRestRecordIterator.qc:255 (Qore)
-----
    >> User exception: /export/home2/dnichols/src/qore/git/qore/qlib/ServiceNowRestDataProvider/ServiceNowRestRecordIterator.qc:255 (Qore): WHERE-ERROR: the first argument to expression "AND" must be a field reference
    >>   ServiceNowRestRecordIterator::doWhereExpressionIntern() called at /export/home2/dnichols/src/qore/git/qore/qlib/ServiceNowRestDataProvider/ServiceNowRestRecordIterator.qc:243 (Qore user code)
    >>   ServiceNowRestRecordIterator::doWhereExpression() called at /export/home2/dnichols/src/qore/git/qore/qlib/ServiceNowRestDataProvider/ServiceNowRestRecordIterator.qc:145 (Qore user code)
    >>   ServiceNowRestRecordIterator::makeQuery() called at /export/home2/dnichols/src/qore/git/qore/qlib/ServiceNowRestDataProvider/ServiceNowRestRecordIterator.qc:60 (Qore user code)
    >>   ServiceNowRestRecordIterator::constructor() called at /export/home2/dnichols/src/qore/git/qore/qlib/ServiceNowRestDataProvider/ServiceNowTableDataProvider.qc:261 (Qore user code)
    >>   ServiceNowTableDataProvider::searchRecordsImpl() called at /export/home2/dnichols/src/qore/git/qore/qlib/DataProvider/AbstractDataProvider.qc:1264 (Qore user code)