]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
affected_rows is only for INSERT or UPDATE
authorAlan T. DeKok <aland@freeradius.org>
Mon, 7 Jun 2021 13:11:53 +0000 (09:11 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 7 Jun 2021 13:15:34 +0000 (09:15 -0400)
src/modules/rlm_sql_map/rlm_sql_map.c

index 69d83795aeb7e72c5d4bd99097d3d634b8ed6700..e0c0c7adc1df42b62b7c25820f727f715e5e23ad 100644 (file)
@@ -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.
         */