From 40f64064ff56c3118d156ba83df72b1779415a8a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 5 Jul 2000 23:12:09 +0000 Subject: Update textin() and textout() to new fmgr style. This is just phase one of updating the whole text datatype, but there are so dang many calls of these two routines that it seems worth a separate commit. --- src/backend/commands/sequence.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/commands/sequence.c') diff --git a/src/backend/commands/sequence.c b/src/backend/commands/sequence.c index 968ae569ee0..80fca6a38a1 100644 --- a/src/backend/commands/sequence.c +++ b/src/backend/commands/sequence.c @@ -377,7 +377,8 @@ setval(PG_FUNCTION_ARGS) static char * get_seq_name(text *seqin) { - char *rawname = textout(seqin); + char *rawname = DatumGetCString(DirectFunctionCall1(textout, + PointerGetDatum(seqin))); int rawlen = strlen(rawname); char *seqname; -- cgit v1.2.3