Prisma1: Can't delete UUID records in PostgreSQL

Created on 23 Jul 2018  路  1Comment  路  Source: prisma/prisma1

Describe the bug
Trying to delete a record registered with an UUID return a internal database error

To Reproduce
Steps to reproduce the behavior:

  1. Create a datamodel with UUID
    type User { id: UUID! @unique name: String! }
  2. Create a record in the playground
    mutation { createUser(data: { name: "John" }) { id name } }
    { "data": { "createUser": { "id": "8c3fde44-b096-43b2-82a2-e766800bfceb", "name": "John" } } }
  1. Try to delete it
    mutation { deleteUser(where:{id:"8c3fde44-b096-43b2-82a2-e766800bfceb"}) { id name } }
  2. See error
    { "data": { "deleteUser": null }, "errors": [ { "message": "Whoops. Looks like an internal server error. Search your server logs for request ID: local:api:cjjxtfsij000m0839w20gmiit", "path": [ "deleteUser" ], "locations": [ { "line": 2, "column": 3 } ], "requestId": "local:api:cjjxtfsij000m0839w20gmiit" } ] }

Expected behavior
Delete the record

Screenshots
Docker container log
image

Versions:

bu2-confirmed areengine bu1-repro-available

Most helpful comment

The fix for this was merged a few days ago. So it is available in 1.13.4.

>All comments

The fix for this was merged a few days ago. So it is available in 1.13.4.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlessandroAnnini picture AlessandroAnnini  路  3Comments

hoodsy picture hoodsy  路  3Comments

marktani picture marktani  路  3Comments

sedubois picture sedubois  路  3Comments

tbrannam picture tbrannam  路  3Comments