Skip to content
Permalink
Browse files
Expose private function integer_to_agtype_value
Expose the private function integer_to_agtype_value.
  • Loading branch information
jrgemignani committed Dec 28, 2021
1 parent 4dd35e0 commit 497dc40d66e1f0eb9921db0f98ef4f3564d916a2
Showing 2 changed files with 3 additions and 2 deletions.
@@ -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));

@@ -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);

0 comments on commit 497dc40

Please sign in to comment.