mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-11 18:49:14 -06:00
expanding bats tests
This commit is contained in:
@@ -80,13 +80,14 @@ func SQLTableDIffs(ctx context.Context, r1, r2 *doltdb.RootValue) error {
|
||||
b.WriteString(",\n")
|
||||
}
|
||||
seenOne := false
|
||||
b.WriteString("\tPRIMARY KEY (")
|
||||
b.WriteString(" PRIMARY KEY (")
|
||||
for _, col := range sch.GetAllCols().GetColumns() {
|
||||
if seenOne {
|
||||
b.WriteString(",")
|
||||
}
|
||||
if col.IsPartOfPK {
|
||||
if seenOne {
|
||||
b.WriteString(",")
|
||||
}
|
||||
b.WriteString(sql.QuoteIdentifier(col.Name))
|
||||
seenOne = true
|
||||
}
|
||||
}
|
||||
b.WriteString(")")
|
||||
|
||||
Reference in New Issue
Block a user