Skip to content

Commit

Permalink
made minor corrections by adding the error functions. Those functions…
Browse files Browse the repository at this point in the history
… were initially modified to overcome an error however that error doesn't presisit anymore.
  • Loading branch information
muhammadshoaib committed Dec 14, 2023
1 parent 6dd6f62 commit 9fc00d5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/backend/utils/adt/agtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9fc00d5

Please sign in to comment.