|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.55 2003/01/01 21:57:05 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/tcop/fastpath.c,v 1.56 2003/01/07 22:32:10 tgl Exp $ |
12 | 12 | *
|
13 | 13 | * NOTES
|
14 | 14 | * This cruft is the server side of PQfn.
|
@@ -97,7 +97,7 @@ SendFunctionResult(Datum retval, bool retbyval, int retlen)
|
97 | 97 | {/* by-reference ... */
|
98 | 98 | if (retlen==-1)
|
99 | 99 | {/* ... varlena */
|
100 |
| -structvarlena*v=(structvarlena*)DatumGetPointer(retval); |
| 100 | +structvarlena*v=PG_DETOAST_DATUM(retval); |
101 | 101 |
|
102 | 102 | pq_sendint(&buf,VARSIZE(v)-VARHDRSZ,VARHDRSZ);
|
103 | 103 | pq_sendbytes(&buf,VARDATA(v),VARSIZE(v)-VARHDRSZ);
|
|