This is an automated email from the ASF dual-hosted git repository.
jgemignani pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-age.git
The following commit(s) were added to refs/heads/master by this push:
new 497dc40 Expose private function integer_to_agtype_value
497dc40 is described below
commit 497dc40d66e1f0eb9921db0f98ef4f3564d916a2
Author: John Gemignani <[email protected]>
AuthorDate: Tue Dec 28 10:55:09 2021 -0800
Expose private function integer_to_agtype_value
Expose the private function integer_to_agtype_value.
---
src/backend/utils/adt/agtype.c | 4 ++--
src/include/utils/agtype.h | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/backend/utils/adt/agtype.c b/src/backend/utils/adt/agtype.c
index e046b5e..e5e4e1d 100644
--- a/src/backend/utils/adt/agtype.c
+++ b/src/backend/utils/adt/agtype.c
@@ -147,7 +147,7 @@ static Numeric get_numeric_compatible_arg(Datum arg, Oid
type, char *funcname,
agtype *get_one_agtype_from_variadic_args(FunctionCallInfo fcinfo,
int variadic_offset,
int expected_nargs);
-static agtype_value *integer_to_agtype_value(int64 int_value);
+
static int64 get_int64_from_int_datums(Datum d, Oid type, char *funcname,
bool *is_agnull);
@@ -1755,7 +1755,7 @@ agtype_value *string_to_agtype_value(char *s)
}
/* helper function to create an agtype_value integer from an integer */
-static agtype_value *integer_to_agtype_value(int64 int_value)
+agtype_value *integer_to_agtype_value(int64 int_value)
{
agtype_value *agtv = palloc0(sizeof(agtype_value));
diff --git a/src/include/utils/agtype.h b/src/include/utils/agtype.h
index a7ed866..b7779da 100644
--- a/src/include/utils/agtype.h
+++ b/src/include/utils/agtype.h
@@ -522,6 +522,7 @@ agtype_value *get_agtype_value(char *funcname, agtype
*agt_arg,
enum agtype_value_type type, bool error);
bool is_agtype_null(agtype *agt_arg);
agtype_value *string_to_agtype_value(char *s);
+agtype_value *integer_to_agtype_value(int64 int_value);
void add_agtype(Datum val, bool is_null, agtype_in_state *result, Oid val_type,
bool key_scalar);