[tarantool-patches] Re: [PATCH v1 1/1] sql: increase row_count when adding CHECK constraint
Kirill Yukhin
kyukhin at tarantool.org
Wed Jul 24 17:10:04 MSK 2019
Hello,
On 19 Jul 11:38, imeevma at tarantool.org wrote:
> If a CHECK constraint was added using an ALTER TABLE statement,
> row_count should be increased. Note that row_count does not
> increase if a CHECK constraint is added during the execution of a
> CREATE TABLE statement.
> For example:
>
> box.execute('CREATE TABLE t1(id INTEGER PRIMARY KEY);')
> box.execute('ALTER TABLE t1 ADD CONSTRAINT ck1 CHECK(id > 0);')
>
> Should return:
> - row_count: 1
>
> However it was '0' before the patch.
>
> Closes #4363
> ---
> https://github.com/tarantool/tarantool/issues/4363
> https://github.com/tarantool/tarantool/tree/imeevma/gh-4363-increase-row_count-on-alter-table
I've checked your patch into master.
--
Regards, Kirill Yukhin
More information about the Tarantool-patches
mailing list