From 71856fa62d68bfad195f958ca3232c51933472ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Thu, 19 Sep 2024 10:05:24 +0200 Subject: [PATCH] Test for LIMIT case insensitive --- dbdimp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbdimp.c b/dbdimp.c index 8bf05c6a..ef46d677 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -475,8 +475,7 @@ static char *parse_params( it would be good to be able to handle any number of cases and orders */ if (((*statement_ptr == ' ') || (*statement_ptr == '\n') || (*statement_ptr == '\t')) && - (!strncmp(statement_ptr+1, "limit ", 6) || - !strncmp(statement_ptr+1, "LIMIT ", 6))) + (!strncasecmp(statement_ptr+1, "limit ", 6))) { limit_flag = 1; }