Re: Parameter marker swapping in {fn timestampdiff()}

From: Matthew Bellew <matthewb(at)labkey(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: Parameter marker swapping in {fn timestampdiff()}
Date: 2023-03-26 22:24:49
Message-ID: CAJnjrPOEm9ztybS=Yf3+Qs1OU+pEW0rQQcDT=TggucsfYTQFNQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thanks, reposted.

On Sun, Mar 26, 2023 at 11:54 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Matthew Bellew <matthewb(at)labkey(dot)com> writes:
> > I recently made a small change to a core utility and our sql tests
> flagged
> > some unexpected results. I traced these to timestampdiff(). Below is a
> > running code function (except for creating the JDBC Connection). I
> expect
> > the same result for all three executeQuery() calls. The version that
> uses
> > string literals return 366 and the versions that use parameter markers
> > return -366.
>
> You probably want to report that on the pgsql-jdbc list. This list
> mainly deals in bugs in core Postgres, so I'm not very sure whether
> the JDBC maintainers read it.
>
> regards, tom lane
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Richard Guo 2023-03-27 02:05:55 Re: A structure has changed but comment modifications maybe missed
Previous Message Tom Lane 2023-03-26 18:54:39 Re: Parameter marker swapping in {fn timestampdiff()}