From e7d1fea516626e752e2143bab6ebe665bc812378 Mon Sep 17 00:00:00 2001 From: Julien Rouhaud Date: Sat, 25 Feb 2023 14:47:20 +0800 Subject: [PATCH] Fix hypopg_create_index argument retrieval. --- hypopg_index.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypopg_index.c b/hypopg_index.c index 4d925c0..204fc3e 100644 --- a/hypopg_index.c +++ b/hypopg_index.c @@ -1291,7 +1291,7 @@ hypopg(PG_FUNCTION_ARGS) Datum hypopg_create_index(PG_FUNCTION_ARGS) { - char *sql = TextDatumGetCString(PG_GETARG_TEXT_PP(0)); + char *sql = TextDatumGetCString(PG_GETARG_DATUM(0)); List *parsetree_list; ListCell *parsetree_item; ReturnSetInfo *rsinfo = (ReturnSetInfo *) fcinfo->resultinfo;