mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-21 11:29:51 -05:00
Generate per-table names for constraint checks.
This commit is contained in:
@@ -2541,7 +2541,7 @@ func (t *AlterableDoltTable) generateCheckName(ctx *sql.Context, check *sql.Chec
|
||||
bb.Write([]byte(check.CheckExpression))
|
||||
hash := hash.Of(bb.Bytes())
|
||||
|
||||
hashedName := fmt.Sprintf("chk_%s", hash.String()[:8])
|
||||
hashedName := fmt.Sprintf("%s_chk_%s", t.tableName, hash.String()[:8])
|
||||
name := hashedName
|
||||
|
||||
var i int
|
||||
|
||||
Reference in New Issue
Block a user