Skip to content

Custom type handling does not work as documented #1129

@JakobJingleheimer

Description

@JakobJingleheimer

From the docs for Custom Types:

An array of pg_types oids to handle when parsing values coming from the db.
from : [1337],

The actual behaviour is to apply blindly to all (not just the ones in the array) types matching to.

This creates a problem when trying to work around postgres.js's lack of handling for js Date() (equivalent to TIMESTAMPZ) to a postgressql DATE field. Perhaps there is a better way to handle that, but there does not appear to be anything relevant in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions