go-gorm / postgres

GORM PostgreSQL driver
MIT License
234 stars 123 forks source link

Please bring back WithoutReturning functionality #91

Closed nc-dirknilius closed 2 years ago

nc-dirknilius commented 2 years ago

Describe the feature

In a recent question, there was an issue using Gorm with AWS Redshift because of the unsupported RETURNING keyword. This was resolved later, and then removed again. The option in the postgres.Config struct is still there, but without effect.

Motivation

Using Redshift with Gorm is still a valid use case. Don't know if the removal was an accident.

Related Issues

https://github.com/go-gorm/postgres/issues/20 https://github.com/go-gorm/postgres/commit/70e3bdf112557183a6c3caa831384f55445662c1 https://github.com/go-gorm/postgres/commit/599259408eb08bc35a9487f35ca2cafe0ff13954

Would be cool if that can be supported again :-)

jinzhu commented 2 years ago

https://github.com/go-gorm/postgres/commit/d3403e488eddc0cd1792e45b2122d39e733e04aa