go-gorm / postgres

GORM PostgreSQL driver
MIT License
225 stars 119 forks source link

let gorm support limit and offset binding parameters,change the BindVar of postgres driver #239

Closed jasonchuan closed 6 months ago

jasonchuan commented 7 months ago

if limit and offset use the parameter in new gorm version,must remove config vars before bindvar to ,and then restore them.

What did this pull request do?

User Case Description

this is necessary for limit and offset binding parameters issue https://github.com/go-gorm/gorm/pull/6806

jasonchuan commented 7 months ago

@jinzhu please approve this commit first and add a tag for this version next step https://github.com/go-gorm/gorm/pull/6806