mirror of
https://github.com/postgres/postgres.git
synced 2025-05-23 00:02:38 -04:00
Comment out code that makes no sense, and Purify complains about.
This commit is contained in:
parent
8015ba0836
commit
ea210dc611
@ -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)
|
|||||||
}
|
}
|
||||||
#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)
|
|||||||
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)
|
|||||||
|
|
||||||
|
|
||||||
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user