Skip to content

Commit 7fbed63

Browse files
committed
use DebugString for unreferenceable alias child
1 parent 5943a32 commit 7fbed63

File tree

2 files changed

+164
-46
lines changed

2 files changed

+164
-46
lines changed

sql/expression/alias.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (e *Alias) String() string {
137137

138138
func (e *Alias) DebugString() string {
139139
if e.unreferencable {
140-
return fmt.Sprintf("%s->%s", e.Child, e.name)
140+
return fmt.Sprintf("%s->%s", sql.DebugString(e.Child), e.name)
141141
} else {
142142
return fmt.Sprintf("%s->%s:%d", sql.DebugString(e.Child), e.name, e.id)
143143
}

0 commit comments

Comments
 (0)