Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #17

Open
inix opened this issue Nov 16, 2021 · 8 comments

Comments

@inix
Copy link

inix commented Nov 16, 2021

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
@xiyichan
Copy link

xiyichan commented Dec 7, 2021

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

@inix
Copy link
Author

inix commented Dec 8, 2021

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

我换了另一个库,哈哈

@xiyichan
Copy link

xiyichan commented Dec 8, 2021

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

我换了另一个库,哈哈

用了哪个可以支持oracle

@cheesetree
Copy link

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

@austin-millan
Copy link

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

@dzwvip
Copy link

dzwvip commented Apr 29, 2022

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

@huntepr1billpay
Copy link

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.

@dzwvip
Copy link

dzwvip commented Jul 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants