Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca4587f

Browse files
author
Michael Meskes
committed
Fix parsing of compatibility mode argument.
Patch by Ashutosh Sharma <ashu.coek88@gmail.com>
1 parent49c784e commitca4587f

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
charpkginclude_path[MAXPGPATH];
204204
charinformix_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)

[8]ページ先頭

©2009-2025 Movatter.jp