MySQL: "DateTime value not stored as DateTime, Int or string" #1792
Labels
kind/feature
A request for a new feature.
topic: client types
Types in Prisma Client
topic: native database types
topic: test-utils
Milestone
It is not possible to write to a field with type
Date
orTime
in MySQL using Prisma client.Both these cases are exhibited by this table in mapos database.
To reproduce, import this table's SQL locally into a mysql database and introspect it (
prisma2 introspect --url <db-connection-string>
). Then run the following client query.This yields the error:
Trying to fix this by supplying just Date and Time for the respective fields also fails at Prisma client's validation step:
This Prisma client call yields:
Internal notes:
Test utils database(s) affected:
The text was updated successfully, but these errors were encountered: