]> granicus.if.org Git - php/commitdiff
Fix [-Wduplicated-cond] in MySQLnd driver
authorGeorge Peter Banyard <girgias@php.net>
Wed, 23 Sep 2020 23:12:08 +0000 (00:12 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Fri, 9 Oct 2020 19:54:23 +0000 (20:54 +0100)
Changing it to TYPE_C as this is the only other type in the mysqlnd_buffered_type enum

ext/mysqlnd/mysqlnd_ps.c

index 2415b91a3b837376ec7cdcf2a4e46bd1da81a69c..5572c73fd6f619bb1fb12be6df097e22c6090bce 100644 (file)
@@ -109,7 +109,7 @@ MYSQLND_METHOD(mysqlnd_stmt, store_result)(MYSQLND_STMT * const s)
                        }
                        /* Position at the first row */
                        set->data_cursor = set->data;
-               } else if (result->stored_data->type == MYSQLND_BUFFERED_TYPE_ZVAL) {
+               } else if (result->stored_data->type == MYSQLND_BUFFERED_TYPE_C) {
                        /*TODO*/
                }