*
*
* 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 $
*
*-------------------------------------------------------------------------
*/
}
#endif
+/* not used
#define PSIZE(PTR) (*((int32 *)(PTR) - 1))
+*/
+
Node *
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) {
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) {