mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-25 03:05:52 -05:00
Fixing position of comment offset creation
This commit is contained in:
@@ -56,6 +56,7 @@ func serializeSchemaAsFlatbuffer(sch schema.Schema) ([]byte, error) {
|
||||
rows := serializeClusteredIndex(b, sch)
|
||||
indexes := serializeSecondaryIndexes(b, sch, sch.Indexes().AllIndexes())
|
||||
checks := serializeChecks(b, sch.Checks().AllChecks())
|
||||
comment := b.CreateString(sch.GetComment())
|
||||
|
||||
var hasFeaturesAfterTryAccessors bool
|
||||
for _, col := range sch.GetAllCols().GetColumns() {
|
||||
@@ -72,7 +73,6 @@ func serializeSchemaAsFlatbuffer(sch schema.Schema) ([]byte, error) {
|
||||
serial.TableSchemaAddChecks(b, checks)
|
||||
serial.TableSchemaAddCollation(b, serial.Collation(sch.GetCollation()))
|
||||
if sch.GetComment() != "" {
|
||||
comment := b.CreateString(sch.GetComment())
|
||||
serial.TableSchemaAddComment(b, comment)
|
||||
hasFeaturesAfterTryAccessors = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user