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

Postgres implementation is removing the time part of the timestamp #23

Open
codehashi-dev opened this issue Mar 24, 2021 · 1 comment
Open

Comments

@codehashi-dev
Copy link

codehashi-dev commented Mar 24, 2021

When creating/updating on Aurora Serverless Postgres using the AWS Data API wrapper, the time part is removed from date/time fields.

According to Data API documentation the correct typehint for Timestamps is "TIMESTAMP" (::timestamp) instead of the current implemention with "DATE" (::date).

Affected version: sequelize-aws-data-api@1.0.0-dev.4

codehashi-dev added a commit to codehashi-dev/libstack that referenced this issue Mar 24, 2021
Tested only with Aurora Serverless Postgres. The solution is quite simple: just replace the ::date with ::timestamp
@rabiSharelookapp
Copy link

rabiSharelookapp commented Jun 9, 2021

@codehashi-dev could you please suggest me how to get connection with this package as in basic sequelize package,
previously I have used config/config.json wth sequelize without data-api

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

2 participants