Skip to content
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

Array types inferred incorrectly #136

Closed
binikingi opened this issue Apr 24, 2023 · 0 comments · Fixed by #138
Closed

Array types inferred incorrectly #136

binikingi opened this issue Apr 24, 2023 · 0 comments · Fixed by #138

Comments

@binikingi
Copy link

Describe the bug
postgres timestamp, timestamptz, time, datetime array getting inffered as null

To Reproduce
Steps to reproduce the behavior:
using postgres.js
migration:

CREATE TABLE test (
    id serial primary key,
    test_date_array date[] not null,
    test_instant_arr timestamptz[] not null,
    test_time_arr time[] not null,
    test_test_local_date_time_arr timestamp[] not null
)

Expected behavior
expected to return the right type (Date) as array (Date[])

Screenshots
image

Desktop (please complete the following information):

  • OS: macOS 13.2.1
  • PostgreSQL 14

Additional context
None

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

Successfully merging a pull request may close this issue.

1 participant