diff options
Diffstat (limited to 'src/interfaces/libpq/fe-exec.c')
-rw-r--r-- | src/interfaces/libpq/fe-exec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c index 5d614ebe375..6b3999193d5 100644 --- a/src/interfaces/libpq/fe-exec.c +++ b/src/interfaces/libpq/fe-exec.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.92 2000/03/11 03:08:36 tgl Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.93 2000/03/14 23:59:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -153,8 +153,11 @@ PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status) if (conn) { + /* copy connection data we might need for operations on PGresult */ result->noticeHook = conn->noticeHook; result->noticeArg = conn->noticeArg; + result->client_encoding = conn->client_encoding; + /* consider copying conn's errorMessage */ switch (status) { @@ -172,8 +175,10 @@ PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status) } else { + /* defaults... */ result->noticeHook = NULL; result->noticeArg = NULL; + result->client_encoding = 0; /* should be SQL_ASCII */ } return result; |