Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ee03X-0005Pi-1R for pgsql-jdbc@arkaria.postgresql.org; Tue, 23 Jan 2018 15:00:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ee03W-0005P5-Jd for pgsql-jdbc@arkaria.postgresql.org; Tue, 23 Jan 2018 15:00:10 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ee03W-0005Ok-9M for pgsql-jdbc@lists.postgresql.org; Tue, 23 Jan 2018 15:00:10 +0000 Received: from m69-170.mailgun.net ([166.78.69.170]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ee03R-00077O-Rs for pgsql-jdbc@postgresql.org; Tue, 23 Jan 2018 15:00:09 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=github.com; q=dns/txt; s=mailo; t=1516719604; h=Content-Transfer-Encoding: Content-Type: Mime-Version: Subject: Message-ID: To: Reply-To: From: Date: Sender; bh=bfiyIGQhSFiLPKlXVWXcHgcle4Sggmtb1wFwe0hox/4=; b=aBRzejdlWF8W/rG7cNRgfvMQptojR5SqslHzLYnfWprc72cE1tIurU69e8p0t34YUIXF15aZ VZSUCqXGW6xOyqPvb2oatCzT/fKglll2t6gbKpWE1C+6zs3tkTixyeo/mL3CZN66O/U6xEeQ FPZUTBH5FDXt5ynhSKbplAQXO+s= X-Mailgun-Sid: WyI3ZTA2ZSIsICJwZ3NxbC1qZGJjQHBvc3RncmVzcWwub3JnIiwgIjQwZiJd X-Mailgun-Sending-Ip: 166.78.69.170 Sender: sitnikov.vladimir=gmail.com@github.com Received: from github.com (Unknown [192.30.252.36]) by mxa.mailgun.org with ESMTP id 5a674df4.7f2744468150-smtp-out-n03; Tue, 23 Jan 2018 15:00:04 -0000 (UTC) Date: Tue, 23 Jan 2018 07:00:04 -0800 From: Vladimir Sitnikov Reply-To: Vladimir Sitnikov To: pgsql-jdbc@postgresql.org Message-ID: <5a674df471557_2e902ade84567c04650df@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Subject: [pgjdbc/pgjdbc] e13351: fix: reWriteBatchedInserts=true causes syntax erro... Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--==_mimepart_5a674df470f1e_2e902ade84567c0464913"; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ----==_mimepart_5a674df470f1e_2e902ade84567c0464913 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: e133510e70114db128784911b6790b5690d77320 https://github.com/pgjdbc/pgjdbc/commit/e133510e70114db128784911b6790b5690d77320 Author: Vladimir Sitnikov Date: 2018-01-23 (Tue, 23 Jan 2018) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/Parser.java M pgjdbc/src/test/java/org/postgresql/core/ParserTest.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/BaseTest4.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/BatchedInsertReWriteEnabledTest.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/UpsertTest.java Log Message: ----------- fix: reWriteBatchedInserts=true causes syntax error with ON CONFLICT (#1082) INSERT into ... VALUES(...),(...),(...) ON CONFLICT (id) ... confused parser since it considered braces after on conflict to be a part of VALUES clause. ----==_mimepart_5a674df470f1e_2e902ade84567c0464913--