oracle icon indicating copy to clipboard operation
oracle copied to clipboard

go get github.com/cengsin/oracle # github.com/cengsin/oracle ../../../../../pkg/mod/github.com/cengsin/[email protected]/oracle.go:53:59: unknown field 'WithReturning' in struct literal of type callbacks.Config

Open inix opened this issue 3 years ago • 8 comments

go get github.com/cengsin/oracle
# github.com/cengsin/oracle
../../../../../pkg/mod/github.com/cengsin/[email protected]/oracle.go:53:59: unknown field 'WithReturning' in struct literal of type callbacks.Config

inix avatar Nov 16 '21 12:11 inix

这个我也遇到了,要降级gorm 到1.21的版本

xiyichan avatar Dec 07 '21 07:12 xiyichan

这个我也遇到了,要降级gorm 到1.21的版本

我换了另一个库,哈哈

inix avatar Dec 08 '21 06:12 inix

这个我也遇到了,要降级gorm 到1.21的版本

我换了另一个库,哈哈

用了哪个可以支持oracle

xiyichan avatar Dec 08 '21 06:12 xiyichan

这边改下 // register callbacks callbacks.RegisterDefaultCallbacks(db, &callbacks.Config{ UpdateClauses: []string{"UPDATE", "SET", "WHERE", "ORDER BY", "RETURNING"}, })

cheesetree avatar Mar 16 '22 03:03 cheesetree

Use gorm.io/gorm v1.20.5 as workaround, this driver is too old and not maintained enough for latest gorm releases.

austin-millan avatar Apr 20 '22 18:04 austin-millan

https://github.com/dzwvip/oracle 支持 gorm 1.23.4

dzwvip avatar Apr 29 '22 01:04 dzwvip

Hello, I used your https://github.com/dzwvip/oracle and it fixed the issues of the older version. However, when I choose to overwrite the default for: db, err := gorm.Open(oracle.Open(connStr), &gorm.Config{ NamingStrategy: schema.NamingStrategy{ SingularTable: true, }, }) The code is still appending an "s" on the end of the table names.

huntepr1billpay avatar Jul 15 '22 23:07 huntepr1billpay

Hello, I used your https://github.com/dzwvip/oracle and it fixed the issues of the older version. However, when I choose to overwrite the default for: db, err := gorm.Open(oracle.Open(connStr), &gorm.Config{ NamingStrategy: schema.NamingStrategy{ SingularTable: true, }, }) The code is still appending an "s" on the end of the table names.

already fixed

dzwvip avatar Jul 16 '22 01:07 dzwvip