|
6 | 6 | *
|
7 | 7 | *
|
8 | 8 | * IDENTIFICATION
|
9 |
| - * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.19 1997/07/24 20:13:21 momjian Exp $ |
| 9 | + * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.20 1997/08/03 02:28:10 momjian Exp $ |
10 | 10 | *
|
11 | 11 | *-------------------------------------------------------------------------
|
12 | 12 | */
|
@@ -172,7 +172,10 @@ define_sets(Node *clause)
|
172 | 172 | }
|
173 | 173 | #endif
|
174 | 174 |
|
| 175 | +/* not used |
175 | 176 | #define PSIZE(PTR) (*((int32 *)(PTR) - 1))
|
| 177 | +*/ |
| 178 | + |
176 | 179 | Node*
|
177 | 180 | parser_typecast(Value*expr,TypeName*typename,inttyplen)
|
178 | 181 | {
|
@@ -254,12 +257,14 @@ parser_typecast(Value *expr, TypeName *typename, int typlen)
|
254 | 257 | cp=instr2 (tp,const_string,typlen);
|
255 | 258 |
|
256 | 259 | if (!tbyvalue(tp)) {
|
| 260 | +/* |
257 | 261 | if (len >= 0 && len != PSIZE(cp)) {
|
258 | 262 | char *pp;
|
259 | 263 | pp = (char *) palloc(len);
|
260 | 264 | memmove(pp, cp, len);
|
261 | 265 | cp = pp;
|
262 | 266 | }
|
| 267 | +*/ |
263 | 268 | lcp=PointerGetDatum(cp);
|
264 | 269 | }else {
|
265 | 270 | switch(len) {
|
@@ -374,12 +379,14 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen)
|
374 | 379 |
|
375 | 380 |
|
376 | 381 | if (!tbyvalue(tp)) {
|
| 382 | +/* |
377 | 383 | if (len >= 0 && len != PSIZE(cp)) {
|
378 | 384 | char *pp;
|
379 | 385 | pp = (char *) palloc(len);
|
380 | 386 | memmove(pp, cp, len);
|
381 | 387 | cp = pp;
|
382 | 388 | }
|
| 389 | +*/ |
383 | 390 | lcp=PointerGetDatum(cp);
|
384 | 391 | }else {
|
385 | 392 | switch(len) {
|
|