summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-print.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-07-18 18:34:34 +0000
committerBruce Momjian <bruce@momjian.us>1998-07-18 18:34:34 +0000
commit7b2b779a2a00adef83ec530399aece723610d90c (patch)
tree6d3945d1b27df88896e1b0bcb6ea554c9d18bbcd /src/interfaces/libpq/fe-print.c
parent550f2097979eaea10b9f2d248524061301842339 (diff)
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.
Diffstat (limited to 'src/interfaces/libpq/fe-print.c')
-rw-r--r--src/interfaces/libpq/fe-print.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/libpq/fe-print.c b/src/interfaces/libpq/fe-print.c
index 586ec370aa4..be1983ad773 100644
--- a/src/interfaces/libpq/fe-print.c
+++ b/src/interfaces/libpq/fe-print.c
@@ -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;