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

Commit75220fb

Browse files
author
Michael Meskes
committed
Made ecpg compatibility mode and run-time behaviour options case insensitive.
1 parent84c41ae commit75220fb

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-
elseif (strncmp(optarg,"ORACLE",strlen("ORACLE"))==0)
254+
elseif (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-
elseif (strcmp(optarg,"prepare")==0)
267+
elseif (pg_strcasecmp(optarg,"prepare")==0)
268268
auto_prepare= true;
269-
elseif (strcmp(optarg,"questionmarks")==0)
269+
elseif (pg_strcasecmp(optarg,"questionmarks")==0)
270270
questionmarks= true;
271271
else
272272
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp