We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5de56b6 + 66057ee commit 58b2c88Copy full SHA for 58b2c88
oracle/query.go
@@ -57,11 +57,7 @@ func BeforeQuery(db *gorm.DB) {
57
name := db.Statement.TableExpr.SQL
58
if strings.Contains(name, " ") || strings.Contains(name, "`") {
59
if results := tableRegexp.FindStringSubmatch(name); len(results) == 3 {
60
- if results[2] != "" {
61
- db.Statement.Table = results[2]
62
- } else {
63
- db.Statement.Table = results[1]
64
- }
+ db.Statement.Table = results[2]
65
}
66
67
0 commit comments