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 CD30B252D7 for ; Fri, 11 Jan 2019 09:06:47 -0500 (EST) 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 QjSrwtTwpb3B for ; Fri, 11 Jan 2019 09:06:47 -0500 (EST) Received: from smtpng2.m.smailru.net (smtpng2.m.smailru.net [94.100.179.3]) (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 893F2251CC for ; Fri, 11 Jan 2019 09:06:47 -0500 (EST) Date: Fri, 11 Jan 2019 17:06:45 +0300 From: Konstantin Osipov Subject: [tarantool-patches] Re: [PATCH v1 2/4] sql: disallow use of TYPEOF in Check Message-ID: <20190111140645.GB31711@chai> References: <467d962bb970e77481307b7e73892e35c1a6601f.1547128310.git.kshcherbatov@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <467d962bb970e77481307b7e73892e35c1a6601f.1547128310.git.kshcherbatov@tarantool.org> 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 Cc: korablev@tarantool.org, Kirill Shcherbatov * Kirill Shcherbatov [19/01/10 23:12]: > Due to the fact that we are going to perform CHECKs validations > on the server side, checks are performed on the fields with > affinity already applied that may differ with type of original > data. > After the introduction of static types, the need for type checks > based on the CHECKs disappeared. SQL is server side as well. I would say that we're changing the timing when check constraint validation is invoked: it is now invoked inside a space trigger, rather than in vdbe. > -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.io - www.twitter.com/kostja_osipov