Skip to content

Commit 646cfd3

Browse files
author
James Cor
committed
aaa
1 parent be526ea commit 646cfd3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sql/analyzer/replace_sort.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,12 +175,12 @@ func replaceIdxSortHelper(ctx *sql.Context, scope *plan.Scope, node sql.Node, so
175175
sortFields[i] = sortField
176176
} else {
177177
sameSortFields = false
178-
col2, _ := col.(sql.Expression2)
178+
valCol, _ := col.(sql.ValueExpression)
179179
sortFields[i] = sql.SortField{
180-
Column: col,
181-
Column2: col2,
182-
NullOrdering: sortField.NullOrdering,
183-
Order: sortField.Order,
180+
Column: col,
181+
ValueExprColumn: valCol,
182+
NullOrdering: sortField.NullOrdering,
183+
Order: sortField.Order,
184184
}
185185
}
186186
}

0 commit comments

Comments
 (0)