From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthew Bellew <matthewb@labkey.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Parameter marker swapping in {fn timestampdiff()}
Date: Sun, 26 Mar 2023 14:54:39 -0400
Message-ID: <3016276.1679856879@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJnjrPND0MiidV+zRgzmL4zb5oYv9TgCUwtYqD4yW3+k4Cc+Cg@mail.gmail.com>
References: <CAJnjrPND0MiidV+zRgzmL4zb5oYv9TgCUwtYqD4yW3+k4Cc+Cg@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, matthewb@labkey.com, pgsql-bugs@lists.postgresql.org
Subject: Re: Parameter marker swapping in {fn timestampdiff()}
In-Reply-To: <3016276.1679856879@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox