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 E314F2EF39 for ; Fri, 17 May 2019 07:40:14 -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 SoOR7_ddMWjk for ; Fri, 17 May 2019 07:40:14 -0400 (EDT) Received: from smtp52.i.mail.ru (smtp52.i.mail.ru [94.100.177.112]) (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 9B4612EEF3 for ; Fri, 17 May 2019 07:40:14 -0400 (EDT) Date: Fri, 17 May 2019 14:40:12 +0300 From: Kirill Yukhin Subject: [tarantool-patches] Re: [PATCH v1 1/1] sql: do not replace the error with a syntax error Message-ID: <20190517114012.h7p4avkd53pky6cc@tarantool.org> References: <76ecaa6e2ba8a69f421a73bb25fb857cf5bbe001.1557244912.git.imeevma@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <76ecaa6e2ba8a69f421a73bb25fb857cf5bbe001.1557244912.git.imeevma@gmail.com> 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 Hello, On 07 May 19:03, imeevma@tarantool.org wrote: > Currently, it is possible to set a syntax error, even if there has > already been another error before. > > For example: > box.execute("insert into not_exist values(1) a") > > The first error is "Space 'NOT_EXIST' does not exist", but "Syntax > error near 'a'" is displayed. > > After this patch, all syntax errors will be set only if there have > been no errors before. > > Closes #3964 > --- > https://github.com/tarantool/tarantool/issues/3964 > https://github.com/tarantool/tarantool/tree/imeevma/gh-3964-stop-parser-on-error I've checked your patch into master. -- Regards, Kirill Yukhin