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

  • From: Kirill Yukhin <kyukhin@xxxxxxxxxxxxx>
  • To: Nikita Pettik <korablev@xxxxxxxxxxxxx>
  • Date: Tue, 2 Oct 2018 10:17:55 +0300

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

Other related posts: