OSDN Git Service

Change the parser to convert SQL "position" and "substring" syntax to
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 31 Oct 2000 10:22:13 +0000 (10:22 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Tue, 31 Oct 2000 10:22:13 +0000 (10:22 +0000)
commit73874a06f02691b32c07318e543d83e7947efa51
treec401c757c898211a54701e728b120dd7178e77d5
parentd397c1c8a2dfec4ac93eb0e1b3f96418bb98fdd7
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.
14 files changed:
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/nodes/list.c
src/backend/nodes/outfuncs.c
src/backend/nodes/read.c
src/backend/parser/gram.y
src/backend/parser/parse_node.c
src/backend/parser/scan.l
src/backend/utils/adt/varbit.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/nodes/nodes.h
src/include/nodes/pg_list.h
src/include/utils/varbit.h