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
Can's set zero precision to timestamp #4784
Comments
Thanks for the report. I check quickly and it's seems the problem occurs with precision = 0 because of that check during the column compile phase :
I will make a fix quickly. |
OlivierCavadenti
added a commit
to OlivierCavadenti/knex
that referenced
this issue
Oct 30, 2021
OlivierCavadenti
added a commit
to OlivierCavadenti/knex
that referenced
this issue
Oct 30, 2021
OlivierCavadenti
added a commit
to OlivierCavadenti/knex
that referenced
this issue
Oct 30, 2021
OlivierCavadenti
added a commit
that referenced
this issue
Oct 30, 2021
OlivierCavadenti
added a commit
to OlivierCavadenti/knex
that referenced
this issue
Oct 30, 2021
OlivierCavadenti
added a commit
that referenced
this issue
Oct 30, 2021
OlivierCavadenti
added a commit
to AbeonaPascha/knex
that referenced
this issue
Nov 4, 2021
Released in 1.0.1. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Knex version: Knex Local version: 0.95.12
Database + version: psql (PostgreSQL) 13.4
OS: MacOS Monterey 12.0.1 (21A559)
Bug
In migration create field
t.timestamp('confirmed_at', {useTz: false, precision: 0});
Expected
timestamp(0) without time zone
From PostgreSQL documentation
The text was updated successfully, but these errors were encountered: