We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49c784e commit ca4587fCopy full SHA for ca4587f
src/interfaces/ecpg/preproc/ecpg.c
@@ -198,12 +198,12 @@ main(int argc, char *const argv[])
198
system_includes = true;
199
break;
200
case 'C':
201
- if (strncmp(optarg, "INFORMIX", strlen("INFORMIX")) == 0)
+ if (pg_strcasecmp(optarg, "INFORMIX") == 0 || pg_strcasecmp(optarg, "INFORMIX_SE") == 0)
202
{
203
char pkginclude_path[MAXPGPATH];
204
char informix_path[MAXPGPATH];
205
206
- compat = (strcmp(optarg, "INFORMIX") == 0) ? ECPG_COMPAT_INFORMIX : ECPG_COMPAT_INFORMIX_SE;
+ compat = (pg_strcasecmp(optarg, "INFORMIX") == 0) ? ECPG_COMPAT_INFORMIX : ECPG_COMPAT_INFORMIX_SE;
207
get_pkginclude_path(my_exec_path, pkginclude_path);
208
snprintf(informix_path, MAXPGPATH, "%s/informix/esql", pkginclude_path);
209
add_include_path(informix_path);
0 commit comments