Comparing dbresults and ct_results return codes

DB-Library’s dbresults can return SUCCEED, FAIL, or NO_MORE_RESULTS:

In Client-Library, a synchronous-mode ct_results call can return CS_SUCCEED, CS_FAIL, CS_CANCELED, or CS_END_RESULTS. (For an asynchronous call, the completion status will be one of these values.)

ct_results indicates server-side error or success by means of its result_type output parameter: