1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Still had a few MULTIBYTE problems when client encoding was

different from database's ...
This commit is contained in:
Tom Lane
1999-04-25 21:50:58 +00:00
parent 0d99c95388
commit 122923c97f
4 changed files with 40 additions and 9 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.27 1999/04/25 19:27:45 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.28 1999/04/25 21:50:57 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -138,7 +138,7 @@ BeginCommand(char *pname,
* send fe info on tuples we're about to send
* ----------------
*/
pq_putmessage('P', pname, strlen(pname)+1);
pq_puttextmessage('P', pname);
/* ----------------
* if this is a retrieve, then we send back the tuple
@ -272,7 +272,7 @@ EndCommand(char *commandTag, CommandDest dest)
* ----------------
*/
sprintf(buf, "%s%s", commandTag, CommandInfo);
pq_putmessage('C', buf, strlen(buf)+1);
pq_puttextmessage('C', buf);
CommandInfo[0] = '\0';
break;