*/
ret = (inst->module->sql_fetch_row)(*handle, inst->config);
if (ret < 0) {
- if (ret != RLM_SQL_NO_MORE_ROWS) {
- MOD_ROPTIONAL(RERROR, ERROR, "Error fetching row");
- } else {
- MOD_ROPTIONAL(RDEBUG, DEBUG, "No rows were returned.");
- }
+ MOD_ROPTIONAL(RERROR, ERROR, "Error fetching row");
rlm_sql_print_error(inst, request, *handle, false);
}