Commit 73af7f1
Fix SET statement behavior differences between server and memory engines
The issue was two-fold:
1. SET statements used an empty schema instead of OkResultSchema, causing
the server handler to process them through the wrong code path.
2. In server engine tests, SET statements were routed to the query() path
instead of the exec() path, causing them to return empty result sets
instead of OkResult.
Changes:
- sql/plan/set.go: Use types.OkResultSchema instead of empty schema
- enginetest/server_engine.go: Remove SET from shouldQuery list so it
goes through exec() path which properly handles OkResult
This ensures SET statements return consistent OkResult behavior in both
memory engine and server engine modes, fixing CI test failures.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 622acbd commit 73af7f1
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
0 commit comments