Skip to content

Commit b3936fc

Browse files
committed
Renamed rule
1 parent 8401d19 commit b3936fc

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

sql/analyzer/resolve_column_defaults.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ func stripTableNamesFromDefault(e *expression.Wrapper) (sql.Expression, transfor
307307
return expression.WrapExpression(&nd), transform.NewTree, nil
308308
}
309309

310-
func backtickDefaultColumnValueNames(ctx *sql.Context, a *Analyzer, n sql.Node, _ *plan.Scope, _ RuleSelector, qFlags *sql.QueryFlags) (sql.Node, transform.TreeIdentity, error) {
311-
span, ctx := ctx.Span("backtickDefaultColumnValueNames")
310+
func quoteDefaultColumnValueNames(ctx *sql.Context, a *Analyzer, n sql.Node, _ *plan.Scope, _ RuleSelector, qFlags *sql.QueryFlags) (sql.Node, transform.TreeIdentity, error) {
311+
span, ctx := ctx.Span("quoteDefaultColumnValueNames")
312312
defer span.End()
313313

314314
return transform.Node(n, func(n sql.Node) (sql.Node, transform.TreeIdentity, error) {

sql/analyzer/rule_ids.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const (
8181
validateDeleteFromId // validateDeleteFrom
8282

8383
// after all
84-
cacheSubqueryAliasesInJoinsId // cacheSubqueryAliasesInJoins
85-
BacktickDefaulColumnValueNamesId // backtickDefaultColumnValueNames
86-
TrackProcessId // trackProcess
84+
cacheSubqueryAliasesInJoinsId // cacheSubqueryAliasesInJoins
85+
QuoteDefaultColumnValueNamesId // quoteDefaultColumnValueNames
86+
TrackProcessId // trackProcess
8787
)

sql/analyzer/ruleid_string.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sql/analyzer/rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func init() {
2323
{applyProceduresId, applyProcedures},
2424
{inlineSubqueryAliasRefsId, inlineSubqueryAliasRefs},
2525
{cacheSubqueryAliasesInJoinsId, cacheSubqueryAliasesInJoins},
26-
{BacktickDefaulColumnValueNamesId, backtickDefaultColumnValueNames},
26+
{QuoteDefaultColumnValueNamesId, quoteDefaultColumnValueNames},
2727
{TrackProcessId, trackProcess},
2828
}
2929
}

0 commit comments

Comments
 (0)