Skip to content
Snippets Groups Projects
Commit ea210dc6 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

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

parent 8015ba08
Branches
Tags
No related merge requests found
......@@ -6,7 +6,7 @@
*
*
* 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)
}
#endif
/* not used
#define PSIZE(PTR) (*((int32 *)(PTR) - 1))
*/
Node *
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);
if (!tbyvalue(tp)) {
/*
if (len >= 0 && len != PSIZE(cp)) {
char *pp;
pp = (char *) palloc(len);
memmove(pp, cp, len);
cp = pp;
}
*/
lcp = PointerGetDatum(cp);
} else {
switch(len) {
......@@ -374,12 +379,14 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen)
if (!tbyvalue(tp)) {
/*
if (len >= 0 && len != PSIZE(cp)) {
char *pp;
pp = (char *) palloc(len);
memmove(pp, cp, len);
cp = pp;
}
*/
lcp = PointerGetDatum(cp);
} else {
switch(len) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment