File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/interfaces/ecpg/preproc Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments