diff options
Diffstat (limited to 'contrib/postgres_fdw/deparse.c')
-rw-r--r-- | contrib/postgres_fdw/deparse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/postgres_fdw/deparse.c b/contrib/postgres_fdw/deparse.c index f5d723cc38a..8ed915744af 100644 --- a/contrib/postgres_fdw/deparse.c +++ b/contrib/postgres_fdw/deparse.c @@ -469,8 +469,12 @@ appendWhereClause(StringInfo buf, List *exprs, bool is_first) { + int nestlevel; ListCell *lc; + /* Make sure any constants in the exprs are printed portably */ + nestlevel = set_transmission_modes(); + foreach(lc, exprs) { RestrictInfo *ri = (RestrictInfo *) lfirst(lc); @@ -487,6 +491,8 @@ appendWhereClause(StringInfo buf, is_first = false; } + + reset_transmission_modes(nestlevel); } /* |