Skip to content

Commit 75220fb

Browse files
author
Michael Meskes
committed
Made ecpg compatibility mode and run-time behaviour options case insensitive.
1 parent 84c41ae commit 75220fb

File tree

1 file changed

+4
-4
lines changed
  • src/interfaces/ecpg/preproc

1 file changed

+4
-4
lines changed

src/interfaces/ecpg/preproc/ecpg.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ main(int argc, char *const argv[])
251251
snprintf(informix_path, MAXPGPATH, "%s/informix/esql", pkginclude_path);
252252
add_include_path(informix_path);
253253
}
254-
else if (strncmp(optarg, "ORACLE", strlen("ORACLE")) == 0)
254+
else if (pg_strcasecmp(optarg, "ORACLE") == 0)
255255
{
256256
compat = ECPG_COMPAT_ORACLE;
257257
}
@@ -262,11 +262,11 @@ main(int argc, char *const argv[])
262262
}
263263
break;
264264
case 'r':
265-
if (strcmp(optarg, "no_indicator") == 0)
265+
if (pg_strcasecmp(optarg, "no_indicator") == 0)
266266
force_indicator = false;
267-
else if (strcmp(optarg, "prepare") == 0)
267+
else if (pg_strcasecmp(optarg, "prepare") == 0)
268268
auto_prepare = true;
269-
else if (strcmp(optarg, "questionmarks") == 0)
269+
else if (pg_strcasecmp(optarg, "questionmarks") == 0)
270270
questionmarks = true;
271271
else
272272
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy