We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d821e0 commit cc72538Copy full SHA for cc72538
sql/memo/rel_props.go
@@ -134,11 +134,12 @@ func newRelProps(rel RelExpr) *relProps {
134
// Identifiers are ambiguous.
135
func idxExprsColumns(idx sql.Index) []string {
136
exprs := idx.Expressions()
137
+ columns := make([]string, len(exprs))
138
for i, e := range exprs {
- colName := e[strings.IndexByte(e, '.')+1:]
139
- exprs[i] = strings.ToLower(colName)
+ colName := e[strings.IndexRune(e, '.')+1:]
140
+ columns[i] = strings.ToLower(colName)
141
}
- return exprs
142
+ return columns
143
144
145
func (p *relProps) SetStats(s sql.Statistic) {
0 commit comments