Content-Length: 285206 | pFad | http://github.com/postgrespro/postgres_cluster/commit/75220fb62b1387b61f92c42b1bd147cb30607012

C2 Made ecpg compatibility mode and run-time behaviour options case inse… · postgrespro/postgres_cluster@75220fb · GitHub
Skip to content

Commit 75220fb

Browse files
author
Michael Meskes
committed
Made ecpg compatibility mode and run-time behaviour options case insensitive.
1 parent 84c41ae commit 75220fb

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

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/75220fb62b1387b61f92c42b1bd147cb30607012

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy