-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Issue getting TIMESTAMP and TIMESTAMPTZ columns from database #6
Comments
cyclotron3k
changed the title
Issue getting Timezone column from database
Issue getting Timestamp column from database
Nov 4, 2022
cyclotron3k
changed the title
Issue getting Timestamp column from database
Issue getting TIMESTAMP and TIMESTAMPTZ columns from database
Nov 4, 2022
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 8, 2022
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 8, 2022
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 8, 2022
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 9, 2022
…without `require 'time'`)
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 9, 2022
…without `require 'time'`)
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 9, 2022
…without `require 'time'`)
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 11, 2022
…without `require 'time'`)
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 12, 2022
…without `require 'time'`)
3 tasks
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 25, 2022
…without `require 'time'`)
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 25, 2022
…ULLs in TIMESTAMP columns`)
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 25, 2022
…without `require 'time'`)
cyclotron3k
added a commit
to cyclotron3k/db-postgres
that referenced
this issue
Nov 25, 2022
…ULLs in TIMESTAMP columns`)
Thanks for your bug report and contributions. I want to sincerely apologise for not looking at this sooner. I really appreciate your contributions. Since the code base was changed, I could not merge your PR directly, but have made the fix in another PR. |
No problem at all! Thanks for you ongoing efforts on this (and many other) gems |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If Postgres returns a timestamp with microsecond precision (e.g.
2022-11-03 14:31:05.112156
) or timezone information (1999-12-31 23:59:59+00
) it causes the following lines indb-postgres-0.7.0/lib/db/postgres/native/types.rb:105
to blow up:Note: Postgres will truncate trailing zeroes, so if you insert a timestamp with 0 milliseconds, Postgres will return a timestamp without a decimal point and this issue will not be triggered.
Full test case:
Output:
async 2.2.1
db-postgres 0.7.0
Ruby 3.1
Postgres 13
Debian GNU/Linux 11
The text was updated successfully, but these errors were encountered: