We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da032e commit 3e92db9Copy full SHA for 3e92db9
1 file changed
go/vt/sqlparser/ast_funcs.go
@@ -1084,11 +1084,7 @@ func (node *IdentifierCI) UnmarshalJSON(b []byte) error {
1084
1085
// NewIdentifierCS creates a new IdentifierCS.
1086
func NewIdentifierCS(str string) IdentifierCS {
1087
- // Use StringClone on the table name to ensure it is not pinned to the
1088
- // underlying query string that has been generated by the parser. This
1089
- // could lead to a significant increase in memory usage when the table
1090
- // name comes from a large query.
1091
- return IdentifierCS{v: strings.Clone(str)}
+ return IdentifierCS{v: str}
1092
}
1093
1094
// IsEmpty returns true if TabIdent is empty.
0 commit comments