We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6033561 commit b2de759Copy full SHA for b2de759
sql/planbuilder/ddl.go
@@ -456,7 +456,7 @@ func (b *Builder) buildCreateTableLike(inScope *scope, ct *ast.DDL) *scope {
456
newSch = append(newSch, col)
457
}
458
for _, pkOrd := range pkSch.PkOrdinals {
459
- pkOrdinals = append(pkOrdinals, len(newSch) + pkOrd)
+ pkOrdinals = append(pkOrdinals, len(newSch)+pkOrd)
460
461
462
pkSchema := sql.NewPrimaryKeySchema(newSch, pkOrdinals...)
0 commit comments