Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caX3I-0006JI-9l for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Feb 2017 00:21:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1caX3H-0003qX-OA for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Feb 2017 00:21:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1caX2c-0002RA-4c for pgsql-bugs@postgresql.org; Mon, 06 Feb 2017 00:20:22 +0000 Received: from mail-vk0-x22a.google.com ([2607:f8b0:400c:c05::22a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1caX2Y-0006du-Q5 for pgsql-bugs@postgresql.org; Mon, 06 Feb 2017 00:20:21 +0000 Received: by mail-vk0-x22a.google.com with SMTP id t8so46317451vke.3 for ; Sun, 05 Feb 2017 16:20:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=CtcCK5HIzmtkTx6N+6T2UO69Z4JF1zztzzXyPDA5/08=; b=QxPqSGnv0b/BoRVi77kbuvpwwyFkop+a7tR+GmtH698jfnI1dIWVAgZRBf4sxZ4R1D 9M0J6KeCV3wlWB0g+wynBF9GRoVhYWtuHko8QnHhqdejE3iHJd70fqSTtTW/nB9DpLPP lj+DBXrehwTu+p3OLNeFAgxCw6Ws86Ta85TJlmCeDHFPwWgIkvxRsgJbpYFtf2mIOKAl i+oUnXlWYskHm9hRR+83e+cAR6w3mvg9FYkQtfG20qDi2/jsas7g+FhUiGwzP+hCQZ/e ytumfJhQclbRYa/CsFK47dfDj9RKv6gg7maBpVUKpOGBnZTweh9bTxV+OXKUBPwjnJsi piQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=CtcCK5HIzmtkTx6N+6T2UO69Z4JF1zztzzXyPDA5/08=; b=tUlN0+MwWB9TOlABfyxKPX3ZtVHqVsByQ5NeJNnAm3hGRPd+L8Ka1NwMco4iAwJg5S ONExdzS1SbH0ibYZXdbmhw0KlDCaffntUvK3/eN0rZwBH5TVRxcxCE+zI/esfOV3Ht75 YBEppoeQgCsq37BDeoVpESUmff1jNclvtQFaThZAm9XHVi8NUvxVoZBIe+JaTPWOeMUK 4eMvwJZ1JWTR7g4swHYPXT1A38DTzFjdliyYJtgj2ITKZvCKwNgGRh/65XZV0m4MJysJ r9mZRcSuPisie+gleFfMiWrl0yH++yyH5ROaJEjLTGrpWsQ6KBuwj/HTHftukWb3Izxg HZlQ== X-Gm-Message-State: AMke39kqmG8aXtq9uk8q2kg4H7p0AM9N6Jl7nQuzykjeEY5jGC7euq99FPTLAobC17nzhA== X-Received: by 10.31.178.137 with SMTP id b131mr3457476vkf.70.1486340416994; Sun, 05 Feb 2017 16:20:16 -0800 (PST) Received: from roblaptop ([2804:14d:baa0:8560:89fe:d10e:10f9:598]) by smtp.gmail.com with ESMTPSA id v130sm9847746vkd.7.2017.02.05.16.20.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Feb 2017 16:20:16 -0800 (PST) Message-ID: <1486340413.6509.1.camel@gmail.com> Subject: Re: Parser failed to return an error From: rob stone To: Jeff Janes , "David G. Johnston" Cc: "pgsql-bugs@postgresql.org" Date: Mon, 06 Feb 2017 11:20:13 +1100 In-Reply-To: References: <1486062153.4699.3.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.4-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hello Jeff, On Fri, 2017-02-03 at 13:10 -0800, Jeff Janes wrote: > On Thu, Feb 2, 2017 at 11:14 AM, David G. Johnston gmail.com> wrote: > > On Thursday, February 2, 2017, rob stone > > wrote: > Also, that is indicated by the change in prompt from => to '> > (assuming you are using the default prompts). > > That would seem to be bug in JDBC, though.  Rob, can you provide a > full example code? > What is "EQ"? > > Cheers, > > Jeff "EQ" is a program called ExecuteQuery. You can download the deb package from www.executequery.org. I use it all the time. It is written in Java. I was testing a fairly verbose query and finding my typo took ages. Usually running a statement using EQ and there is an error, it gives you the character position, so you can quickly find your mistake and try again. Instead of reproducing the entire query I posted just the part causing the problem. It appears Tatsuo Ishii has investigated further and illustrated better as to what happens when the to_char mask lacks the ending single quotation mark. Cheers, Rob -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs