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 E434B27B77 for ; Tue, 27 Mar 2018 02:17:13 -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 jtciXJpjjAaq for ; Tue, 27 Mar 2018 02:17:13 -0400 (EDT) Received: from smtp41.i.mail.ru (smtp41.i.mail.ru [94.100.177.101]) (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 A19B227B1E for ; Tue, 27 Mar 2018 02:17:13 -0400 (EDT) Received: by smtp41.i.mail.ru with esmtpa (envelope-from ) id 1f0hux-000658-IO for tarantool-patches@freelists.org; Tue, 27 Mar 2018 09:17:11 +0300 Date: Tue, 27 Mar 2018 09:17:11 +0300 From: Konstantin Osipov Subject: [tarantool-patches] [kostja@tarantool.org: Re: [PATCH v2 2/2] sql: use 'view' opts from space] Message-ID: <20180327061711.GE4581@atlas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 HI, ----- Forwarded message from Konstantin Osipov ----- Date: Tue, 27 Mar 2018 09:04:43 +0300 From: Konstantin Osipov To: tarantool-patches@freelists.org Cc: tarantool-patches@freelist.org, Nikita Pettik Subject: [tarantool-patches] Re: [PATCH v2 2/2] sql: use 'view' opts from space * Nikita Pettik [18/03/27 02:06]: > > +/** > + * Return true if space which corresponds to > + * given table has view option. > + */ > +bool > +space_is_view(Table *table) > +{ > + assert(table != NULL); > + uint32_t space_id = SQLITE_PAGENO_TO_SPACEID(table->tnum); > + struct space *space = space_by_id(space_id); > + assert(space != NULL); > + return space->def->opts.view; > +} I assume this implementation will change in a few weeks. -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.org - www.twitter.com/kostja_osipov ----- End forwarded message ----- -- Konstantin Osipov, Moscow, Russia, +7 903 626 22 32 http://tarantool.org - www.twitter.com/kostja_osipov