diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2000-10-31 10:22:13 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2000-10-31 10:22:13 +0000 |
commit | 73874a06f02691b32c07318e543d83e7947efa51 (patch) | |
tree | c401c757c898211a54701e728b120dd7178e77d5 /src/backend/nodes/outfuncs.c | |
parent | d397c1c8a2dfec4ac93eb0e1b3f96418bb98fdd7 (diff) | |
download | postgresql-73874a06f02691b32c07318e543d83e7947efa51.tar.gz postgresql-73874a06f02691b32c07318e543d83e7947efa51.zip |
Change the parser to convert SQL "position" and "substring" syntax to
position() and substring() functions, so that it works transparently for
bit types as well. Alias the text functions appropriately.
Add position() for bit types.
Add new constant node T_BitString that represents literals of the form
B'1001 and pass those to zpbit type.
Diffstat (limited to 'src/backend/nodes/outfuncs.c')
-rw-r--r-- | src/backend/nodes/outfuncs.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 16b64851097..2e8ecaca652 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.129 2000/10/26 21:35:48 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.130 2000/10/31 10:22:10 petere Exp $ * * NOTES * Every (plan) node in POSTGRES has an associated "out" routine which @@ -20,10 +20,10 @@ * representation plus some other information (string length, etc.) * */ -#include <ctype.h> - #include "postgres.h" +#include <ctype.h> + #include "access/heapam.h" #include "access/htup.h" #include "catalog/pg_type.h" @@ -1352,6 +1352,9 @@ _outValue(StringInfo str, Value *value) _outToken(str, value->val.str); appendStringInfo(str, "\" "); break; + case T_BitString: + appendStringInfo(str, " B%s ", value->val.str); + break; default: elog(NOTICE, "_outValue: don't know how to print type %d ", value->type); |