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/equalfuncs.c | |
| parent | d397c1c8a2dfec4ac93eb0e1b3f96418bb98fdd7 (diff) | |
| download | postgresql-73874a06f02691b32c07318e543d83e7947efa51.tar.gz | |
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/equalfuncs.c')
| -rw-r--r-- | src/backend/nodes/equalfuncs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/nodes/equalfuncs.c b/src/backend/nodes/equalfuncs.c index 372f22499d..8519fd6115 100644 --- a/src/backend/nodes/equalfuncs.c +++ b/src/backend/nodes/equalfuncs.c @@ -20,7 +20,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.77 2000/10/18 16:16:04 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.78 2000/10/31 10:22:10 petere Exp $ * *------------------------------------------------------------------------- */ @@ -1719,6 +1719,7 @@ _equalValue(Value *a, Value *b) return a->val.ival == b->val.ival; case T_Float: case T_String: + case T_BitString: return strcmp(a->val.str, b->val.str) == 0; default: break; @@ -1874,6 +1875,7 @@ equal(void *a, void *b) case T_Integer: case T_Float: case T_String: + case T_BitString: retval = _equalValue(a, b); break; |
