[tarantool-patches] Re: [PATCH] sql: disallow specifying ID in <DEFAULT> clause

Kirill Yukhin kyukhin at tarantool.org
Tue Oct 2 10:17:55 MSK 2018


Hello,
On 19 сен 19:20, Nikita Pettik wrote:
> Each column may feature default value, but this value must be constant.
> Before this patch, it was allowed to do things like:
> 
> CREATE TABLE te14 (s1 INT PRIMARY KEY, s2 INT DEFAULT s1);
> 
> Which results in assertion fault on insertion. Lets prohibit IDs
> (i.e. columns' names) in <DEFAULT> clause.
> 
> Closes #3695
> ---
> Branch: https://github.com/tarantool/tarantool/tree/np/gh-3695-disallow-ID-be-default
> Issue: https://github.com/tarantool/tarantool/issues/3695
The patch is OK. I've checked it into 2.0 branch.

--
Regards, Kirill Yukhin




More information about the Tarantool-patches mailing list