go-gorm / postgres

GORM PostgreSQL driver
MIT License
225 stars 119 forks source link

Add new error for "Violation Check Constraint" #271

Closed anilsenay closed 3 months ago

anilsenay commented 4 months ago

What did this pull request do?

Added 23514 pgerrcode support

User Case Description

Detailed here: https://github.com/go-gorm/gorm/pull/6992

anilsenay commented 4 months ago

This PR requires to merging https://github.com/go-gorm/gorm/pull/6992 After https://github.com/go-gorm/gorm/pull/6992 merged and released a new version, this pr must be updated

anilsenay commented 4 months ago

hey @jinzhu can you take a look?

anilsenay commented 3 months ago

hey @jinzhu can you take a look?

+up

(sorry for bothering you but I want to use this feature in my project 😄)

anilsenay commented 3 months ago

Can we add the doc link in comment? like mysql

https://www.postgresql.org/docs/current/errcodes-appendix.html

done 👍

anilsenay commented 3 months ago

@a631807682 if there is no pr to merge, could you create new tag as v1.5.8 👉 👈