jrgemignani opened a new pull request, #1342:
URL: https://github.com/apache/age/pull/1342
Fixed issue 1329 where `agtype_to_int`<8,4,2> and `agtype_to_int4_array`
crashed due to not properly checking input.
As these functions take "any" input, the input has to be properly checked
before casting it to a specific type. The input section assumed it was agtype,
which caused crashes for non-agtypes.
The functions `agtype_to_int`<8,4,2> will convert non-agtypes into agtype.
However, there were no regression tests for this.
The functions `agtype_to_int`<8,4,2> will convert non-agtypes to agtype ints
but, did not for their string equivs. Meaning, passing a ('true') or ('3.14')
would fail but, passing a (true) or (3.14) would not. This has been corrected
for all 3 functions.
TODO -
The function `agtype_to_int4_array` only takes agtype, currently, and we
should consider allowing it to take "any" types.
Added regression tests.
Added missing regression tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]