ory / ladon

A SDK for access control policies: authorization for the microservice and IoT age. Inspired by AWS IAM policies. Written for Go.

Home Page:https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=ladon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Transaction has already been committed or rolled back

kminehart opened this issue · comments

Hi there,
We're using CockroachDB (which is wire-compatible with postgres). Whenever we call sqlmanager.Create(...), we get the error:

2017/10/31 15:58:16 sql: Transaction has already been committed or rolled back

It's a bit hard for us to track down. We think the transaction may be failing / rolled back because of the structure of the prepared statements, but we're not totally sure.

I'll try to test it on postgres here in a few hours.

Ah, it seems that CockroachDB does not support ON DELETE CASCADE.

Can you please update to the latest commit? It should then show you the appropriate error, as this was fixed a few days ago.

Closing due to inactivity.