oracle 11g

This commit is contained in:
2024-05-10 11:28:44 +08:00
parent 184a8722d8
commit 2d3723822b
5 changed files with 141 additions and 93 deletions

View File

@ -16,13 +16,15 @@ import (
func Create(db *gorm.DB) {
stmt := db.Statement
if stmt == nil {
return
}
schema := stmt.Schema
boundVars := make(map[string]int)
if stmt == nil || schema == nil {
if schema == nil {
return
}
boundVars := make(map[string]int)
hasDefaultValues := len(schema.FieldsWithDefaultDBValue) > 0
if !stmt.Unscoped {