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 3B07325028 for ; Wed, 11 Jul 2018 08:19:39 -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 Jkm6TOWJPbQz for ; Wed, 11 Jul 2018 08:19:39 -0400 (EDT) Received: from smtp44.i.mail.ru (smtp44.i.mail.ru [94.100.177.104]) (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 653F521CC1 for ; Wed, 11 Jul 2018 08:19:38 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [tarantool-patches] Re: [PATCH v2 1/4] sql: get rid off sqlite3NestedParse in clean stats From: "n.pettik" In-Reply-To: <22654f98-1eb9-9196-4400-648670afc12e@tarantool.org> Date: Wed, 11 Jul 2018 15:19:34 +0300 Content-Transfer-Encoding: 7bit Message-Id: References: <3017d0e640eebdc6c3f28b5b4a4cbd2ef5646882.1531242355.git.kshcherbatov@tarantool.org> <22654f98-1eb9-9196-4400-648670afc12e@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: Kirill Shcherbatov > * Generate code that will do an analysis of a single table in > * a database. > * > * @param parse Parser context. > * @param table Target table to analyze. > */ > static void > vdbe_emit_analyze_table(struct Parse *parse, struct Table *table) > { > assert(table != NULL); > sql_set_multi_write(parse, false); > int stat_cursor = parse->nTab; > parse->nTab += 3; > vdbe_emit_stat_space_open(parse, stat_cursor, NULL, table->def->name); Look, vdbe_emit_stat_space_open() still always takes NULL as index_name. Lets remove it.