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