From 9fc00d52f2d2768152b7e2dde69d2c0100be2518 Mon Sep 17 00:00:00 2001 From: Shoaib Date: Thu, 14 Dec 2023 16:07:54 +0100 Subject: [PATCH] made minor corrections by adding the error functions. Those functions were initially modified to overcome an error however that error doesn't presisit anymore. --- src/backend/utils/adt/agtype.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/backend/utils/adt/agtype.c b/src/backend/utils/adt/agtype.c index 7751f2306..dbd9569de 100644 --- a/src/backend/utils/adt/agtype.c +++ b/src/backend/utils/adt/agtype.c @@ -2193,12 +2193,11 @@ Datum _agtype_build_vertex(PG_FUNCTION_ARGS) /* handles null */ if (fcinfo->args[0].isnull) { - /* + ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("_agtype_build_vertex() graphid cannot be NULL"))); - */ - PG_RETURN_NULL(); + } if (fcinfo->args[1].isnull) @@ -2267,12 +2266,9 @@ Datum _agtype_build_edge(PG_FUNCTION_ARGS) /* process graph id */ if (fcinfo->args[0].isnull) { - PG_RETURN_NULL(); - /* ereport(ERROR, (errcode(ERRCODE_INVALID_PARAMETER_VALUE), errmsg("_agtype_build_edge() graphid cannot be NULL"))); - */ } id = AG_GETARG_GRAPHID(0);