Skip to content

Commit ca4587f

Browse files
author
Michael Meskes
committed
Fix parsing of compatibility mode argument.
Patch by Ashutosh Sharma <ashu.coek88@gmail.com>
1 parent 49c784e commit ca4587f

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

src/interfaces/ecpg/preproc/ecpg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ main(int argc, char *const argv[])
198198
system_includes = true;
199199
break;
200200
case 'C':
201-
if (strncmp(optarg, "INFORMIX", strlen("INFORMIX")) == 0)
201+
if (pg_strcasecmp(optarg, "INFORMIX") == 0 || pg_strcasecmp(optarg, "INFORMIX_SE") == 0)
202202
{
203203
char pkginclude_path[MAXPGPATH];
204204
char informix_path[MAXPGPATH];
205205

206-
compat = (strcmp(optarg, "INFORMIX") == 0) ? ECPG_COMPAT_INFORMIX : ECPG_COMPAT_INFORMIX_SE;
206+
compat = (pg_strcasecmp(optarg, "INFORMIX") == 0) ? ECPG_COMPAT_INFORMIX : ECPG_COMPAT_INFORMIX_SE;
207207
get_pkginclude_path(my_exec_path, pkginclude_path);
208208
snprintf(informix_path, MAXPGPATH, "%s/informix/esql", pkginclude_path);
209209
add_include_path(informix_path);

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