oracle 11g
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user