-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected NULL timestamp during some queries #3274
Comments
I have some updates based on further testing:
|
thanks for reporting this & sorry you're running into that. would you be
able to supply a fully self-contained & exeutable node script (I have
postgres locally. dont need docker compose or anything) that reproduces the
issue? if so i canwrite & test & fix it.
…On Tue, Jul 2, 2024 at 11:56 AM Chris ***@***.***> wrote:
I have some updates based on further testing:
1. This problem actually presents itself with just *one* element in
that dynamic array. I have no idea why a formatted string would cause
problem as opposed to a hard-coded string.
2. Using values instead of the inline mapping makes no difference.
—
Reply to this email directly, view it on GitHub
<#3274 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAMHINCLQLUVQD62ZBLCNTZKLLUBAVCNFSM6AAAAABKH4QZOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBTHA2DCNJRGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I appreciate the fast response. I have some client deadlines I need to meet but as soon as I have a free moment I'll send over a POC. Also just some more context in case this makes a difference or jogs your memory: I'm using the |
I'm using pg v8.12.0, and I'm noticing that in some cases where I'm executing queries a timestamp (with time zone) that's expected to have a value always returns NULL.
The error manifests when I run a large
SELECT * FROM table WHERE id in ('about', 'onehundred', 'ids');
query. If I pick one id out of the array and usepg
to run that same query again with only one element in the array, I get the timestamp as expected. I also ran this same one-hundred-elem-array query directly against Postgres and could not reproduce this issue, so it seems to be solely the fault ofpg
. Any ideas what might be happening?Here's how I'm using
pg
for reference:I know the docs say to not inline those parameters but none of this is injectable. Still, I can try the prescribed way and report back.
The text was updated successfully, but these errors were encountered: