optionally enabling identity value in SQL INSERT for MS SQL ref: https://github.com/jinzhu/gorm/issues/647
This commit is contained in:
parent
447885d98f
commit
93a2c6827d
@ -115,3 +115,8 @@ func (commonDialect) CurrentDatabase(scope *Scope) (name string) {
|
|||||||
scope.Err(scope.NewDB().Raw("SELECT DATABASE()").Row().Scan(&name))
|
scope.Err(scope.NewDB().Raw("SELECT DATABASE()").Row().Scan(&name))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (commonDialect) EnableIdentityInsert(db *DB, tableName string) *DB {
|
||||||
|
return db
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user