From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E70382E023 for ; Mon, 3 Jun 2019 17:15:10 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FD5wfvA2NFch for ; Mon, 3 Jun 2019 17:15:10 -0400 (EDT) Received: from smtp21.mail.ru (smtp21.mail.ru [94.100.179.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 43A3F2DF7A for ; Mon, 3 Jun 2019 17:15:10 -0400 (EDT) Subject: [tarantool-patches] Re: [PATCH v4 4/4] box: user-friendly interface to manage ck constraints References: <2c91472289c012378a80a90829ab50dd9fee57f8.1558014727.git.kshcherbatov@tarantool.org> <55d520b5-40b1-1446-a319-ae2df06f4da1@tarantool.org> <6befe4a1-5089-b9ce-13ea-ed7b14a8dee1@tarantool.org> From: Vladislav Shpilevoy Message-ID: <3e195b82-d45f-7bb6-92fd-1c9e7ed40010@tarantool.org> Date: Mon, 3 Jun 2019 23:15:06 +0200 MIME-Version: 1.0 In-Reply-To: <6befe4a1-5089-b9ce-13ea-ed7b14a8dee1@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org, Kirill Shcherbatov >> >> By the way, what happens, if a constraint object is assigned >> to a local variable, then its space is dropped. What if I >> then call :drop() on the constraint object? > s2:drop() > --- > ... > physics_ck > --- > - [] > ... > physics_ck:drop() > --- > - error: '[string "return physics_ck:drop() "]:1: attempt to call method ''drop'' > (a nil value)' > ... WTF? Drop method should exist. You saved in physics_ck not a constraint, but a list of them. Fix that, this test is incorrect.