Skip to content

Commit fb0cc1c

Browse files
committed
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent ce95370 commit fb0cc1c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sql/parser.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func RemoveSpaceAndDelimiter(query string, d rune) string {
133133
})
134134
}
135135

136-
type MySqlSchemaFormatter struct {}
136+
type MySqlSchemaFormatter struct{}
137137

138138
var _ SchemaFormatter = &MySqlSchemaFormatter{}
139139

@@ -243,7 +243,7 @@ func (m *MySqlSchemaFormatter) GenerateCreateTableIndexDefinition(isUnique, isSp
243243
// GenerateCreateTableForiegnKeyDefinition implements the SchemaFormatter interface.
244244
func (m *MySqlSchemaFormatter) GenerateCreateTableForiegnKeyDefinition(fkName string, fkCols []string, parentTbl string, parentCols []string, onDelete, onUpdate string) string {
245245
keyCols := strings.Join(m.QuoteIdentifiers(fkCols), ",")
246-
refCols := strings.Join(m.QuoteIdentifiers(parentCols), ",")
246+
refCols := strings.Join(m.QuoteIdentifiers(parentCols), ",")
247247
fkey := fmt.Sprintf(" CONSTRAINT %s FOREIGN KEY (%s) REFERENCES %s (%s)", m.QuoteIdentifier(fkName), keyCols, m.QuoteIdentifier(parentTbl), refCols)
248248
if onDelete != "" {
249249
fkey = fmt.Sprintf("%s ON DELETE %s", fkey, onDelete)
@@ -277,4 +277,4 @@ func (m *MySqlSchemaFormatter) QuoteIdentifiers(ids []string) []string {
277277
quoted[i] = m.QuoteIdentifier(id)
278278
}
279279
return quoted
280-
}
280+
}

sql/planbuilder/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func New(ctx *sql.Context, cat sql.Catalog, es sql.EventScheduler, p sql.Parser)
113113
if p == nil {
114114
p = sql.GlobalParser
115115
}
116-
116+
117117
var state sql.AuthorizationQueryState
118118
if cat != nil {
119119
state = cat.AuthorizationHandler().NewQueryState(ctx)

0 commit comments

Comments
 (0)