Skip to content

Commit

Permalink
Rename inner functions
Browse files Browse the repository at this point in the history
  • Loading branch information
robozmey committed Dec 12, 2024
1 parent 64950bf commit 86d18ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/try_convert/try_convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ find_typmod_conversion_function(Oid typeId, Oid *funcId)
}

Datum
try_convert_from_function(Datum value, int32 typmod, Oid funcId, bool *is_failed)
convert_from_function(Datum value, int32 typmod, Oid funcId, bool *is_failed)
{
Datum res = 0;

Expand Down Expand Up @@ -223,7 +223,7 @@ try_convert_from_function(Datum value, int32 typmod, Oid funcId, bool *is_failed


Datum
try_convert_via_io(Datum value, Oid sourceTypeId, Oid targetTypeId, int32 targetTypMod, bool *is_failed)
convert_via_io(Datum value, Oid sourceTypeId, Oid targetTypeId, int32 targetTypMod, bool *is_failed)
{
FmgrInfo outfunc;

Expand Down Expand Up @@ -384,10 +384,10 @@ convert(Datum value, ConversionType conversion_type, Oid funcId, Oid sourceTypeI
return value;

case CONVERSION_TYPE_FUNC:
return try_convert_from_function(value, targetTypMod, funcId, is_failed);
return convert_from_function(value, targetTypMod, funcId, is_failed);

case CONVERSION_TYPE_VIA_IO:
return try_convert_via_io(value, sourceTypeId, targetTypeId, targetTypMod, is_failed);
return convert_via_io(value, sourceTypeId, targetTypeId, targetTypMod, is_failed);

case CONVERSION_TYPE_ARRAY:
elog(ERROR, "no sopport for ARRAY CONVERSION");
Expand Down

0 comments on commit 86d18ff

Please sign in to comment.