From 980bb74b8ee6eed7292a18263c66adcc9fa52154 Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Thu, 21 Aug 2025 11:56:50 +0100 Subject: [PATCH] If no rows are affected output zero Rather than no boxes, which just results in warnings when assigning the xlat output to an attribute --- src/modules/rlm_sql/rlm_sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/rlm_sql/rlm_sql.c b/src/modules/rlm_sql/rlm_sql.c index ed73825686..20bd3fed67 100644 --- a/src/modules/rlm_sql/rlm_sql.c +++ b/src/modules/rlm_sql/rlm_sql.c @@ -468,7 +468,7 @@ static xlat_action_t sql_xlat_query_resume(TALLOC_CTX *ctx, fr_dcursor_t *out, x numaffected = (inst->driver->sql_affected_rows)(query_ctx, &inst->config); if (numaffected < 1) { RDEBUG2("SQL query affected no rows"); - goto finish; + numaffected = 0; } MEM(vb = fr_value_box_alloc_null(ctx)); -- 2.47.3