mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Add auto-size to screen to \d? commands. Use UNION to show all
\d? results in one query. Add \d? field search feature. Rename MB to MULTIBYTE.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.74 1998/07/09 03:32:10 scrappy Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.75 1998/07/18 18:34:30 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -124,7 +124,7 @@ struct EnvironmentOptions
|
||||
{
|
||||
"PGTZ", "timezone"
|
||||
},
|
||||
#ifdef MB
|
||||
#ifdef MULTIBYTE
|
||||
{
|
||||
"PGCLIENTENCODING", "client_encoding"
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* didn't really belong there.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.6 1998/07/03 04:24:15 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.7 1998/07/18 18:34:33 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -35,7 +35,7 @@
|
||||
#endif
|
||||
#endif /* WIN32 */
|
||||
|
||||
#ifdef MB
|
||||
#ifdef MULTIBYTE
|
||||
#include "regex/pg_wchar.h"
|
||||
#include "commands/variable.h"
|
||||
#endif
|
||||
@@ -494,7 +494,7 @@ PQprintTuples(PGresult *res,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef MB
|
||||
#ifdef MULTIBYTE
|
||||
/*
|
||||
* returns the byte length of the word beginning s.
|
||||
* Client side encoding is determined by the environment variable
|
||||
@@ -512,7 +512,7 @@ int PQmblen(unsigned char *s)
|
||||
encoding = pg_char_to_encoding(str);
|
||||
}
|
||||
if (encoding < 0) {
|
||||
encoding = MB;
|
||||
encoding = MULTIBYTE;
|
||||
}
|
||||
return(pg_encoding_mblen(encoding, s));
|
||||
}
|
||||
@@ -551,7 +551,7 @@ do_field(PQprintOpt *po, PGresult *res,
|
||||
|
||||
if (!skipit)
|
||||
{
|
||||
#ifdef MB
|
||||
#ifdef MULTIBYTE
|
||||
int len;
|
||||
|
||||
for (p = pval, o = buf; *p;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: libpq-fe.h,v 1.35 1998/07/14 02:41:25 momjian Exp $
|
||||
* $Id: libpq-fe.h,v 1.36 1998/07/18 18:34:34 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -368,7 +368,7 @@ extern "C"
|
||||
* 0, use variable width */
|
||||
);
|
||||
|
||||
#ifdef MB
|
||||
#ifdef MULTIBYTE
|
||||
extern int PQmblen(unsigned char *s);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user