vapor-community/postgresql-driver

ID not passed to INSERT

pruthvikar opened this issue · 0 comments

The ID is removed in this code

        // Remove ID from the query data to avoid constraint violation error
        var data = query.data
        data.removeValue(forKey: .some(E.idKey))

found here

It is not inserted into the query again before returning. This causes all queries to fail due to the non-null constraint.