Re: Parameter marker swapping in {fn timestampdiff()} - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Parameter marker swapping in {fn timestampdiff()}
Date
Msg-id 3016276.1679856879@sss.pgh.pa.us
Whole thread Raw
In response to Parameter marker swapping in {fn timestampdiff()}  (Matthew Bellew <matthewb@labkey.com>)
Responses Re: Parameter marker swapping in {fn timestampdiff()}  (Matthew Bellew <matthewb@labkey.com>)
List pgsql-bugs
Matthew Bellew <matthewb@labkey.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



pgsql-bugs by date:

Previous
From: Matthew Bellew
Date:
Subject: Parameter marker swapping in {fn timestampdiff()}
Next
From: Matthew Bellew
Date:
Subject: Re: Parameter marker swapping in {fn timestampdiff()}