if (query_ctx->rcode != RLM_SQL_OK) goto error;
allocation_len = sqlippool_result_process(allocation, sizeof(allocation), query_ctx);
- sql->driver->sql_finish_select_query(query_ctx, &query_ctx->inst->config);
if (allocation_len > 0) goto make_pair;
/*
if (query_ctx->rcode != RLM_SQL_OK) goto error;
allocation_len = sqlippool_result_process(allocation, sizeof(allocation), query_ctx);
- sql->driver->sql_finish_select_query(query_ctx, &query_ctx->inst->config);
if (allocation_len > 0) goto make_pair;
expand_find:
if (query_ctx->rcode != RLM_SQL_OK) goto error;
allocation_len = sqlippool_result_process(allocation, sizeof(allocation), query_ctx);
- sql->driver->sql_finish_select_query(query_ctx, &query_ctx->inst->config);
if (allocation_len > 0) goto make_pair;
case IPPOOL_ALLOC_POOL_CHECK_RUN:
TALLOC_FREE(alloc_ctx->query);
allocation_len = sqlippool_result_process(allocation, sizeof(allocation), query_ctx);
- sql->driver->sql_finish_select_query(query_ctx, &query_ctx->inst->config);
if (allocation_len) {
/*
case IPPOOL_ALLOC_UPDATE_RUN:
TALLOC_FREE(alloc_ctx->query);
- sql->driver->sql_finish_query(query_ctx, &query_ctx->inst->config);
+ if (env->update) sql->driver->sql_finish_query(query_ctx, &query_ctx->inst->config);
finish:
if ((env->commit.type == FR_TYPE_STRING) &&