optionally enabling identity value in SQL INSERT for MS SQL ref: https://github.com/jinzhu/gorm/issues/647

This commit is contained in:
biju-kalissery 2015-09-08 13:55:01 -04:00
parent 447885d98f
commit 93a2c6827d

View File

@ -115,3 +115,8 @@ func (commonDialect) CurrentDatabase(scope *Scope) (name string) {
scope.Err(scope.NewDB().Raw("SELECT DATABASE()").Row().Scan(&name))
return
}
func (commonDialect) EnableIdentityInsert(db *DB, tableName string) *DB {
return db
}