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 6CAFB2C9E2 for ; Thu, 25 Apr 2019 10:52:40 -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 YkfrXXbIgTOo for ; Thu, 25 Apr 2019 10:52:40 -0400 (EDT) Received: from smtpng3.m.smailru.net (smtpng3.m.smailru.net [94.100.177.149]) (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 2D6A52C9DE for ; Thu, 25 Apr 2019 10:52:40 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: [tarantool-patches] Re: [PATCH v1 1/1] sql: fix boolean variables binding From: "n.pettik" In-Reply-To: Date: Thu, 25 Apr 2019 17:52:37 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: References: 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 > diff --git a/src/box/bind.c b/src/box/bind.c > index 5aa79751a..b01ad4a74 100644 > --- a/src/box/bind.c > +++ b/src/box/bind.c > @@ -98,8 +98,7 @@ sql_bind_decode(struct sql_bind *bind, int i, const = char **packet) > bind->bytes =3D 1; > break; > case MP_BOOL: > - /* sql doesn't support boolean. Use int instead. */ > - bind->i64 =3D mp_decode_bool(packet) ? 1 : 0; > + bind->b =3D mp_decode_bool(packet); > bind->bytes =3D sizeof(bind->i64); sizeof(bind->b); The rest is OK as obvious.=