Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1feqV5-0006m7-0B for pgsql-jdbc@arkaria.postgresql.org; Sun, 15 Jul 2018 23:32:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1feqV2-0003xx-A2 for pgsql-jdbc@arkaria.postgresql.org; Sun, 15 Jul 2018 23:32:20 +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.89) (envelope-from ) id 1feqV1-0003xi-Tn for pgsql-jdbc@lists.postgresql.org; Sun, 15 Jul 2018 23:32:20 +0000 Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1feqUz-00073W-36 for pgsql-jdbc@postgresql.org; Sun, 15 Jul 2018 23:32:19 +0000 Received: by mail-pf0-x235.google.com with SMTP id q7-v6so24270013pff.2 for ; Sun, 15 Jul 2018 16:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=labkey-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=gX3Uf6kWSoUeIBxm+LIBKW7iME//sxj8GYQsuK+LTTw=; b=REHS63IhLCEEf1b04srHVLjwHpl6MYloZwGfEFWm4nZ0iyZMVCT554NbqSzOHEvE3J WHJaTEGJ6iqhDV+2JgVnKtTBHrgD8RmuajTUXT8GuhGQ2OG/gxwFz1KEn80W247xcdjo p9oA70iDG746L4U/hOJG66Qz/s3+eQu+XcjOp6seVdO9KCruDquXfn3FZfDNeUuvDdpl RybbQNhMOUbCF95q3T9Yzn1QK7+MjGANNKGh9QTbQjnsJcvoOc1j1xoDZnqzRwjctg0T Q1hFIa3Cj9Ax5A/i6zckRtypa6gQVjKBzZ4zQJ4LEOvnCqSZnKWKv6AJqNfk9lgnV/nK 5wSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=gX3Uf6kWSoUeIBxm+LIBKW7iME//sxj8GYQsuK+LTTw=; b=C8d9Sm8YKIBPEz8HgYST9cdLEu+USjGNHwnskb6sEQTDOJ+FOO4w+mv1uBeXmfPE5M u0QGWgNvNjnRBzbGRXN6iYyem081Kzm1GJHj4SiIM1oEv+AwouRFsQdMsctP1eIwsu0G Z4sIVtoqm5gBsVdQ2jETU66OuZLhyejYx21R0wNQWEWPkrB40a9YwKelwU5y95JaTO3O ZKjXaddpICFocxS1HnVg8hz/mweaBtCAKxBfFTADRfm/x0FGRu9R5+1111ZirdcQ27dC IUAd2AM+ufK4WRx2Tq5e5gaoKha0Se0CJzmR88pebbRZzJlV+asx4D2IYFz6Uyt165FK wCZA== X-Gm-Message-State: AOUpUlFfDzQ8eyNy93pSRP/8uWbuCwhQgw9TmFJsLG8HGb19kiv3INS0 mHYSIw7CilFS1FMqbxA68TYXFrTK5A== X-Google-Smtp-Source: AAOMgpdXpgOHufZOWNep2f4WxtWKmkDz0WWTHzmRSuDYusAc6xn+kyVsVMdKrOAcoytzHU82kmRHdw== X-Received: by 2002:a63:9e0a:: with SMTP id s10-v6mr8329513pgd.326.1531697533193; Sun, 15 Jul 2018 16:32:13 -0700 (PDT) Received: from [192.168.1.133] (c-73-221-3-151.hsd1.wa.comcast.net. [73.221.3.151]) by smtp.gmail.com with ESMTPSA id 64-v6sm23008284pfe.151.2018.07.15.16.32.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jul 2018 16:32:12 -0700 (PDT) Subject: Re: 42.2.3 regression in fn timestampadd(SQL_TSI_MINUTE) To: Vladimir Sitnikov Cc: List References: <6f4f4d3d-f781-010b-0686-f25c6a7537af@labkey.com> From: Adam Rauch Message-ID: <2876ecac-f496-a014-a9ca-bccec77134de@labkey.com> Date: Sun, 15 Jul 2018 16:32:11 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Vladimir, thanks for the prompt fix! I've confirmed that 42.2.4 works correctly with our unit tests (which exercise timestampadd using all the standard constants)... i.e., fix looks great. Minor issue: I believe there's a typo in the 42.2.3 known issues section of the changelogs (/CHANGELOG.md and /docs/_posts/2018-07-12-42.2.3-release.md): I think "SQL_TSI_MINUTE is treated as minute" should be "SQL_TSI_MINUTE is treated as second". Thanks! Adam On 7/14/2018 3:06 AM, Vladimir Sitnikov wrote: > Adam, thanks for the prompt report. > > Please feel free to review a suggested fix: > https://github.com/pgjdbc/pgjdbc/pull/1250 > > Vladimir