[tarantool-patches] Re: [PATCH v2 6/9] sql: disallow use of TYPEOF in Check
n.pettik
korablev at tarantool.org
Mon Apr 1 22:52:46 MSK 2019
> On 26 Mar 2019, at 13:59, Kirill Shcherbatov <kshcherbatov at tarantool.org> wrote:
>
> Due to the fact that we are going to perform CHECKs validations
> on the server side, checks are performed on the fields with
> affinity
We don’t have ‘affinity’ anymore :)
> already applied that may differ with type of original
> data.
For instance, we have *super* type SCALAR. It may
contain values of different types. Using typeof function
we can restrict set of acceptable types.
Another example: until we introduce UNSIGNED type,
we can filter negative values with typeof function.
> After the introduction of static types, the need for type checks
> based on the CHECKs disappeared.
>
> Needed for #3691
And why it is needed for #3691?
Now arguments are not convincing enough.
More information about the Tarantool-patches
mailing list