[tarantool-patches] Re: [PATCH] sql: raise err on CHECK + ON CONFLICT REPLACE
korablev at tarantool.org
Mon Feb 4 18:28:40 MSK 2019
> On 4 Feb 2019, at 17:44, Ivan Koptelov <ivan.koptelov at tarantool.org> wrote:
> Adds error raise in case of CHECK constraint declared with ON
> CONFLICT REPLACE action. Before the patch such option was
> forbidden, but if a user tried to create space with such constraint,
> this attempt failed silently.
What is more, now all on conflict actions are ignored for check
constraints. So lets simply fix parser to disallow this clause.
It is quite easy: all you need is to remove onconf rule after CHECK
319 tcons ::= CHECK LP expr(E) RP onconf.
More information about the Tarantool-patches