File tree 3 files changed +3
-3
lines changed
src/interfaces/ecpg/preproc 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ ECPG: DeclareCursorStmtDECLAREcursor_namecursor_optionsCURSORopt_holdFORSelectSt
290
290
struct cursor *ptr, *this;
291
291
char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : mm_strdup($2);
292
292
char *comment, *c1, *c2;
293
- int (* strcmp_fn)(const char *, const char *) = ($2[0] == ':' ? strcmp : pg_strcasecmp);
293
+ int (* strcmp_fn)(const char *, const char *) = (( $2[0] == ':' || $2[0] == '"') ? strcmp : pg_strcasecmp);
294
294
295
295
for (ptr = cur; ptr != NULL; ptr = ptr->next)
296
296
{
Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ add_additional_variables(char *name, bool insert)
492
492
{
493
493
struct cursor *ptr;
494
494
struct arguments *p;
495
- int (* strcmp_fn)(const char *, const char *) = (name[0] == ':' ? strcmp : pg_strcasecmp);
495
+ int (* strcmp_fn)(const char *, const char *) = (( name[0] == ':' || name[0] == '"') ? strcmp : pg_strcasecmp);
496
496
497
497
for (ptr = cur; ptr != NULL; ptr=ptr->next)
498
498
{
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ ECPGCursorStmt: DECLARE cursor_name cursor_options CURSOR opt_hold FOR prepared
291
291
{
292
292
struct cursor *ptr, *this;
293
293
char *cursor_marker = $2[0] == ':' ? mm_strdup("$0") : mm_strdup($2);
294
- int (* strcmp_fn)(const char *, const char *) = ($2[0] == ':' ? strcmp : pg_strcasecmp);
294
+ int (* strcmp_fn)(const char *, const char *) = (( $2[0] == ':' || $2[0] == '"') ? strcmp : pg_strcasecmp);
295
295
struct variable *thisquery = (struct variable *)mm_alloc(sizeof(struct variable));
296
296
const char *con = connection ? connection : "NULL";
297
297
char *comment;
You can’t perform that action at this time.
0 commit comments