Commit ea210dc6 authored by Bruce Momjian's avatar Bruce Momjian

Comment out code that makes no sense, and Purify complains about.

parent 8015ba08
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.19 1997/07/24 20:13:21 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.20 1997/08/03 02:28:10 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -172,7 +172,10 @@ define_sets(Node *clause) ...@@ -172,7 +172,10 @@ define_sets(Node *clause)
} }
#endif #endif
/* not used
#define PSIZE(PTR) (*((int32 *)(PTR) - 1)) #define PSIZE(PTR) (*((int32 *)(PTR) - 1))
*/
Node * Node *
parser_typecast(Value *expr, TypeName *typename, int typlen) parser_typecast(Value *expr, TypeName *typename, int typlen)
{ {
...@@ -254,12 +257,14 @@ parser_typecast(Value *expr, TypeName *typename, int typlen) ...@@ -254,12 +257,14 @@ parser_typecast(Value *expr, TypeName *typename, int typlen)
cp = instr2 (tp, const_string, typlen); cp = instr2 (tp, const_string, typlen);
if (!tbyvalue(tp)) { if (!tbyvalue(tp)) {
/*
if (len >= 0 && len != PSIZE(cp)) { if (len >= 0 && len != PSIZE(cp)) {
char *pp; char *pp;
pp = (char *) palloc(len); pp = (char *) palloc(len);
memmove(pp, cp, len); memmove(pp, cp, len);
cp = pp; cp = pp;
} }
*/
lcp = PointerGetDatum(cp); lcp = PointerGetDatum(cp);
} else { } else {
switch(len) { switch(len) {
...@@ -374,12 +379,14 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen) ...@@ -374,12 +379,14 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen)
if (!tbyvalue(tp)) { if (!tbyvalue(tp)) {
/*
if (len >= 0 && len != PSIZE(cp)) { if (len >= 0 && len != PSIZE(cp)) {
char *pp; char *pp;
pp = (char *) palloc(len); pp = (char *) palloc(len);
memmove(pp, cp, len); memmove(pp, cp, len);
cp = pp; cp = pp;
} }
*/
lcp = PointerGetDatum(cp); lcp = PointerGetDatum(cp);
} else { } else {
switch(len) { switch(len) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment