Skip to content

Commit 3049ad9

Browse files
macneale4claude
andcommitted
Simplify SET plan schema method implementation
Remove unnecessary setSch variable and directly return types.OkResultSchema from the Schema() method. This addresses PR review feedback to simplify the code without changing functionality. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 49a2a28 commit 3049ad9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sql/plan/set.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,9 @@ func (s *Set) Expressions() []sql.Expression {
7878
return s.Exprs
7979
}
8080

81-
// setSch is used to differentiate from the nil schema,
82-
// because Set does return rows
83-
var setSch = types.OkResultSchema
84-
8581
// Schema implements the sql.Node interface.
8682
func (s *Set) Schema() sql.Schema {
87-
return setSch
83+
return types.OkResultSchema
8884
}
8985

9086
func (s *Set) String() string {

0 commit comments

Comments
 (0)