Skip to content

NULL in smallint array mapped to NaN instead of null #1049

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

Open
adamgreg opened this issue Mar 20, 2025 · 0 comments
Open

NULL in smallint array mapped to NaN instead of null #1049

adamgreg opened this issue Mar 20, 2025 · 0 comments

Comments

@adamgreg
Copy link

I have a table with a column of type smallint[]. When a value within the array is NULL, Postgres.js maps it to NaN. I would like it to map to a JS null instead.

This would match the behaviour when a whole column's value is NULL, and allow me to coalesce the null value in JS.

Is there a way to configure this? Could the current behaviour be considered a bug?

Thanks,
Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant