From 58becc1d6df8cafdb6e61032c32fa14e1967703c Mon Sep 17 00:00:00 2001 From: robocop Date: Mon, 9 Nov 2009 07:26:09 +0000 Subject: [PATCH] CORE-2741 and a special case of the ancient CORE-932 --- src/isql/isql.epp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/isql/isql.epp b/src/isql/isql.epp index 81185e96ea..68eec7cae9 100644 --- a/src/isql/isql.epp +++ b/src/isql/isql.epp @@ -1834,7 +1834,7 @@ void ISQL_print_validation(FILE* fp, while (fb_isspace(*p)) p++; - if (!strncmp(p, "check", 5) || !strncmp(p, "CHECK", 5)) + if (!fb_utils::strnicmp(p, "CHECK", 5)) issql = true; } if (firsttime) @@ -3993,7 +3993,7 @@ static processing_state create_db(const TEXT* statement, // Helen on CORE-932. Let's see if we can discover the real db name. size_t db_name_len = MAXPATHLEN - 1; char temp_name[MAXPATHLEN]; - if (!strncmp(d_name, "/*", 2) || !strcmp(d_name, "--")) + if (!strncmp(d_name, "/*", 2) || !strncmp(d_name, "--", 2)) { const char* target = d_name[0] == '/' ? "/*" : "--"; const char* comment = strstr(statement, target);