Skip to content

Commit

Permalink
🐛 修复 Create 回调 Merge 子句获取虚拟表名方言类型断言问题
Browse files Browse the repository at this point in the history
Signed-off-by: liutianqi <[email protected]>
  • Loading branch information
iTanken committed Jan 3, 2024
1 parent 12686ea commit 7d9b6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func Create(db *gorm.DB) {
}(),
},
clause.From{
Tables: []clause.Table{{Name: db.Dialector.(Dialector).DummyTableName()}},
Tables: []clause.Table{{Name: db.Dialector.(*Dialector).DummyTableName()}},
},
},
On: func() (onExpr []clause.Expression) {
Expand Down

0 comments on commit 7d9b6b1

Please sign in to comment.