-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
kind/featureA request for a new feature.A request for a new feature.topic: database-functionalitytopic: dates / DateTimetopic: mysql
Description
Our mysql instance allow datetime to be zero. Seems to be failing at as some values as null or 0000-00-00, 0000-00-00 00:00:00 or 0000-00-00 00:00:00.000. Tried to read datetimes as just strings on connection string but prisma converts those back to DateTime. Also tried to return zero dates as null on the connection string.
generator photon {
provider = "photonjs"
}
generator nexus_prisma {
provider = "nexus-prisma"
}
datasource db {
provider = "mysql"
url = env("MYSQL_URL")
}
model Compliance {
id Int
expirationDate DateTime?
lastUpdateUTC DateTime
}
leads to
Could not retrieve NaiveDateTime from Value in src/libcore/option.rs:1034:5
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/featureA request for a new feature.A request for a new feature.topic: database-functionalitytopic: dates / DateTimetopic: mysql