8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-25 00:03:03 +01:00

CORE-2741 and a special case of the ancient CORE-932

This commit is contained in:
robocop 2009-11-09 07:26:09 +00:00
parent b58ac3f91d
commit 58becc1d6d

View File

@ -1834,7 +1834,7 @@ void ISQL_print_validation(FILE* fp,
while (fb_isspace(*p)) while (fb_isspace(*p))
p++; p++;
if (!strncmp(p, "check", 5) || !strncmp(p, "CHECK", 5)) if (!fb_utils::strnicmp(p, "CHECK", 5))
issql = true; issql = true;
} }
if (firsttime) 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. // Helen on CORE-932. Let's see if we can discover the real db name.
size_t db_name_len = MAXPATHLEN - 1; size_t db_name_len = MAXPATHLEN - 1;
char temp_name[MAXPATHLEN]; 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* target = d_name[0] == '/' ? "/*" : "--";
const char* comment = strstr(statement, target); const char* comment = strstr(statement, target);