From: Alan T. DeKok Date: Mon, 7 Jun 2021 13:11:53 +0000 (-0400) Subject: affected_rows is only for INSERT or UPDATE X-Git-Tag: release_3_0_23~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d9c156545900745d0ab97f28df882deb80a992e;p=thirdparty%2Ffreeradius-server.git affected_rows is only for INSERT or UPDATE --- diff --git a/src/modules/rlm_sql_map/rlm_sql_map.c b/src/modules/rlm_sql_map/rlm_sql_map.c index 69d83795aeb..e0c0c7adc1d 100644 --- a/src/modules/rlm_sql_map/rlm_sql_map.c +++ b/src/modules/rlm_sql_map/rlm_sql_map.c @@ -225,15 +225,8 @@ static int sql_map_do(const rlm_sql_map_t *inst, REQUEST *request, rlm_sql_handl { vp_map_t const *map; int applied = 0; /* How many maps have been applied to the current request */ - int num_rows; sql_map_row_t ctx; - num_rows = (inst->sql_inst->module->sql_affected_rows)(*handle, inst->sql_inst->config); - if (num_rows == 0) { - RWDEBUG("No affected rows"); - return 0; - } - /* * Cache all of the rows in a simple array. */