(out *strings.Builder, schemaName, tableName string, index *storepb.IndexMetadata, useOnlyClause bool)
| 1393 | } |
| 1394 | |
| 1395 | func writeCreateRegularIndex(out *strings.Builder, schemaName, tableName string, index *storepb.IndexMetadata, useOnlyClause bool) error { |
| 1396 | if index.GetDefinition() != "" { |
| 1397 | if err := writeDefinitionStatement(out, index.GetDefinition()); err != nil { |
| 1398 | return err |
| 1399 | } |
| 1400 | if index.GetComment() != "" { |
| 1401 | return writeIndexComment(out, schemaName, index) |
| 1402 | } |
| 1403 | return nil |
| 1404 | } |
| 1405 | return writeIndex(out, schemaName, tableName, index, useOnlyClause) |
| 1406 | } |
| 1407 | |
| 1408 | func writeTableCommentDiff(out *strings.Builder, schemaName, tableName, oldComment, newComment string) error { |
| 1409 | if oldComment == newComment { |
no test coverage detected