From fad663fad49a65816d0af781b82a997d7eea332f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Mon, 21 Sep 2020 01:00:44 +0200 Subject: [PATCH] Fix savepoint test --- test/tap/tests/savepoint-948-t.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tap/tests/savepoint-948-t.cpp b/test/tap/tests/savepoint-948-t.cpp index 8771301e2..7b405e170 100644 --- a/test/tap/tests/savepoint-948-t.cpp +++ b/test/tap/tests/savepoint-948-t.cpp @@ -361,7 +361,7 @@ int main(int argc, char *argv[]) { MYSQL_ROW row; while ((row = mysql_fetch_row(result))) { - if (strstr(row[0], "MyHGM_myconnpoll_get")) { + if (strcmp(row[0], "MyHGM_myconnpoll_get")) { MyHGM_myconnpoll_get = atoi(row[1]); } } @@ -399,7 +399,7 @@ int main(int argc, char *argv[]) { MYSQL_ROW row; while ((row = mysql_fetch_row(result))) { - if (strstr(row[0], "MyHGM_myconnpoll_get")) { + if (strcmp(row[0], "MyHGM_myconnpoll_get")) { MyHGM_myconnpoll_get = atoi(row[1]) - MyHGM_myconnpoll_get; } }