Skip to content

Commit cc72538

Browse files
author
James Cor
committed
fix
1 parent 6d821e0 commit cc72538

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sql/memo/rel_props.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,12 @@ func newRelProps(rel RelExpr) *relProps {
134134
// Identifiers are ambiguous.
135135
func idxExprsColumns(idx sql.Index) []string {
136136
exprs := idx.Expressions()
137+
columns := make([]string, len(exprs))
137138
for i, e := range exprs {
138-
colName := e[strings.IndexByte(e, '.')+1:]
139-
exprs[i] = strings.ToLower(colName)
139+
colName := e[strings.IndexRune(e, '.')+1:]
140+
columns[i] = strings.ToLower(colName)
140141
}
141-
return exprs
142+
return columns
142143
}
143144

144145
func (p *relProps) SetStats(s sql.Statistic) {

0 commit comments

Comments
 (0)