Skip to content
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
This repository was archived by the owner on Apr 17, 2018. It is now read-only.

do_postgres appears to be truncating timestamp smaller than seconds #78

@tpitale

Description

@tpitale

https://gist.github.com/tpitale/39e97ef1ca24e968dd35

The transaction_time is a column in PostgreSQL. In that example, I get back the value casted by do_postgres as a DateTime, and missing milliseconds. If I cast in PostgreSQL as a text value, and then simply call to_datetime in Ruby, the milliseconds are still present.

Any idea why this is happening and how to fix it? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions