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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matthew Bellew <matthewb(at)labkey(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: Parameter marker swapping in {fn timestampdiff()}
Date: 2023-03-26 18:54:39
Message-ID: 3016276.1679856879@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Matthew Bellew 2023-03-26 22:24:49 Re: Parameter marker swapping in {fn timestampdiff()}
Previous Message Matthew Bellew 2023-03-26 18:14:44 Parameter marker swapping in {fn timestampdiff()}