From efcecd9eca884776137b156a3f1f93c23b98a648 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 22 May 2001 16:37:17 +0000 Subject: Make bit and bit varying types reject too long input. (They already tried to do that, but inconsistently.) Make bit type reject too short input, too, per SQL. Since it no longer zero pads, 'zpbit*' has been renamed to 'bit*' in the source, hence initdb. --- src/backend/parser/parse_node.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/parser/parse_node.c') diff --git a/src/backend/parser/parse_node.c b/src/backend/parser/parse_node.c index b23dd7f1b98..1c9933c2f1a 100644 --- a/src/backend/parser/parse_node.c +++ b/src/backend/parser/parse_node.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.53 2001/03/22 03:59:41 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_node.c,v 1.54 2001/05/22 16:37:16 petere Exp $ * *------------------------------------------------------------------------- */ @@ -473,11 +473,11 @@ make_const(Value *value) break; case T_BitString: - val = DirectFunctionCall3(zpbit_in, + val = DirectFunctionCall3(bit_in, CStringGetDatum(strVal(value)), ObjectIdGetDatum(InvalidOid), Int32GetDatum(-1)); - typeid = ZPBITOID; + typeid = BITOID; typelen = -1; typebyval = false; break; -- cgit v1.2.3