[tarantool-patches] Re: [PATCH v2 1/1] sql: check argument types for SQL built-in functions
Nikita Pettik
korablev at tarantool.org
Wed Sep 18 20:59:11 MSK 2019
On 11 Sep 10:01, imeevma at tarantool.org wrote:
> According to ANSI, some functions must accept arguments of a
> certain type. This is currently not always the case. For example,
> the LENGTH() function accepts arguments of any type.
>
> This patch fixes the behavior of these functions, allowing them to
> accept only certain types of arguments.
>
This should be done in unified way. We can generate OP_ApplyType opcode
(which implements implicit cast conversion) before calling OP_Function.
So that we can remove all these switches from built-ins implementations.
More information about the Tarantool-patches
mailing list