- if ((sr_req->query_type == Z_SRW_query_type_cql && !sr_req->query.cql))
- {
- yaz_add_srw_diagnostic(odr_en,
- &(sru_pdu_res->u.response->diagnostics),
- &(sru_pdu_res->u.response->num_diagnostics),
- 7, "query");
- yaz_add_srw_diagnostic(odr_en,
- &(sru_pdu_res->u.response->diagnostics),
- &(sru_pdu_res->u.response->num_diagnostics),
- 10, "CQL query is empty");
- return false;
- }
- if ((sr_req->query_type == Z_SRW_query_type_xcql && !sr_req->query.xcql))