Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5c431eb

Browse files
committed
Included patches should fix following problems in the muti-byte
enabled PostgreSQL 6.4. o binary cursor does not work o pg_dumpall produces incorrect create database statemnt Tatsuo Ishii t-ishii@sra.co.jp
1 parent 439ef85 commit 5c431eb

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/backend/access/common/printtup.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.36 1998/11/27 19:51:28 vadim Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.37 1998/12/12 22:04:09 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -289,12 +289,9 @@ printtup_internal(HeapTuple tuple, TupleDesc typeinfo)
289289
/* variable length, assume a varlena structure */
290290
len = VARSIZE(attr) - VARHDRSZ;
291291

292-
#ifdef MULTIBYTE
293-
pq_putncharlen(VARDATA(attr), len);
294-
#else
295292
pq_putint(len, VARHDRSZ);
296293
pq_putnchar(VARDATA(attr), len);
297-
#endif
294+
298295
#ifdef IPORTAL_DEBUG
299296
{
300297
char *d = VARDATA(attr);

src/bin/pg_dump/pg_dumpall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ do
5959
6060
if createdb -help|grep encoding >/dev/null
6161
then
62-
echo "create database with encoding='`pg_encoding $ENCODING`' $DATABASE;"
62+
echo "create database $DATABASE with encoding='`pg_encoding $ENCODING`';"
6363
else
6464
echo "create database $DATABASE;"
6565
fi

0 commit comments

Comments
 (0)