diff options
Diffstat (limited to 'src/backend/utils/adt')
-rw-r--r-- | src/backend/utils/adt/arrayfuncs.c | 30 | ||||
-rw-r--r-- | src/backend/utils/adt/pseudotypes.c | 24 |
2 files changed, 52 insertions, 2 deletions
diff --git a/src/backend/utils/adt/arrayfuncs.c b/src/backend/utils/adt/arrayfuncs.c index 9fee8516b86..f713fda7d57 100644 --- a/src/backend/utils/adt/arrayfuncs.c +++ b/src/backend/utils/adt/arrayfuncs.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.87 2003/04/08 23:20:02 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.88 2003/05/08 22:19:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -752,6 +752,34 @@ array_out(PG_FUNCTION_ARGS) PG_RETURN_CSTRING(retval); } +/*--------------------------------------------------------------------- + * array_recv : + * converts an array from the external binary format to + * its internal format. + * return value : + * the internal representation of the input array + *-------------------------------------------------------------------- + */ +Datum +array_recv(PG_FUNCTION_ARGS) +{ + elog(ERROR, "array_recv: not implemented yet"); + return 0; +} + +/*------------------------------------------------------------------------- + * array_send : + * takes the internal representation of an array and returns a bytea + * containing the array in its external binary format. + *------------------------------------------------------------------------- + */ +Datum +array_send(PG_FUNCTION_ARGS) +{ + elog(ERROR, "array_send: not implemented yet"); + return 0; +} + /*------------------------------------------------------------------------- * array_length_coerce : * Apply the element type's length-coercion routine to each element diff --git a/src/backend/utils/adt/pseudotypes.c b/src/backend/utils/adt/pseudotypes.c index 8d7b77202c2..59b31859189 100644 --- a/src/backend/utils/adt/pseudotypes.c +++ b/src/backend/utils/adt/pseudotypes.c @@ -16,7 +16,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/pseudotypes.c,v 1.5 2003/04/08 23:20:02 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/pseudotypes.c,v 1.6 2003/05/08 22:19:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -48,6 +48,28 @@ record_out(PG_FUNCTION_ARGS) PG_RETURN_VOID(); /* keep compiler quiet */ } +/* + * record_recv - binary input routine for pseudo-type RECORD. + */ +Datum +record_recv(PG_FUNCTION_ARGS) +{ + elog(ERROR, "Cannot accept a constant of type %s", "RECORD"); + + PG_RETURN_VOID(); /* keep compiler quiet */ +} + +/* + * record_send - binary output routine for pseudo-type RECORD. + */ +Datum +record_send(PG_FUNCTION_ARGS) +{ + elog(ERROR, "Cannot display a value of type %s", "RECORD"); + + PG_RETURN_VOID(); /* keep compiler quiet */ +} + /* * cstring_in - input routine for pseudo-type CSTRING. |