Skip to content

UUID values are not automatically converted to their binary form on write on mysql and sqlite #1776

@tomhoule

Description

@tomhoule

Since prisma does not have the notion of an UUID or Bytes type yet, uuids are treated as strings, and inserted as strings. This is a problem in cases like #1772, where we have a mysql binary(16) column holding UUIDs. On insert, the query engine will send the uuid as a string, and we get back an error because the size of the column and that of the string do not match.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions