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
Datetime microsecond precision dropped by query builder #804
Comments
The root cause is the fix of this older issue: #129 |
IIUC, #129 was a workaround when Prisma didn't support microsecond precision in the field type definition. However, it now does. Therefore, I propose removing this old behavior. |
Oblynx
added a commit
to Oblynx/prisma-client-py
that referenced
this issue
Aug 21, 2023
closes RobertCraigie#804 - [ ] Unit tests for the changes exist - [ ] Tests pass without significant drop in coverage - [ ] Documentation reflects changes where applicable - [ ] Test snapshots have been [updated](https://prisma-client-py.readthedocs.io/en/latest/contributing/contributing/#snapshot-tests) if applicable By submitting this pull request, I confirm that you can use, modify, copy and redistribute this contribution, under the terms of your choice.
8 tasks
Ah awesome, I was not aware Prisma now supports microsecond precision. Thanks for investigating and opening a PR! |
I hope to keep them coming! I'm really happy to use Prisma from python at work <3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
I have a model with a column of type
DateTime @db.timestamptz(6)
as primary key. Microsecond precision is essential in this application. I try to create multiple rows with the same millisecond but different microseconds and Prisma throws aUniqueViolationError
.How to reproduce
TODO: complete MVE
With this model:
Expected behavior
All the rows are added successfully.
Environment & setup
The text was updated successfully, but these errors were encountered: