From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp45.i.mail.ru (smtp45.i.mail.ru [94.100.177.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 4C5EA4696C3 for ; Wed, 4 Dec 2019 01:51:19 +0300 (MSK) References: <203fef6b30097343b51bf31dc624a8219dd8a736.1574277369.git.korablev@tarantool.org> From: Vladislav Shpilevoy Message-ID: <240cbd15-ee29-e089-3d5c-1c2b38dd1958@tarantool.org> Date: Tue, 3 Dec 2019 23:51:17 +0100 MIME-Version: 1.0 In-Reply-To: <203fef6b30097343b51bf31dc624a8219dd8a736.1574277369.git.korablev@tarantool.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v2 13/16] sql: introduce sql_stmt_query_str() method List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nikita Pettik , tarantool-patches@dev.tarantool.org Thanks for the patch! > diff --git a/src/box/sql/vdbeapi.c b/src/box/sql/vdbeapi.c > index 10135bb68..0978e12fd 100644 > --- a/src/box/sql/vdbeapi.c > +++ b/src/box/sql/vdbeapi.c > @@ -858,6 +858,13 @@ sql_stmt_sizeof(const sql_stmt *stmt) > +const char * > +sql_stmt_query_str(const sql_stmt *stmt) > +{ > + struct Vdbe *v = (struct Vdbe *) stmt; 'const struct Vdbe *'. > + return v->zSql; > +} > + > /******************************* sql_bind_ ************************** > * > * Routines used to attach values to wildcards in a compiled SQL statement. >