You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix CALL statement behavior in server engine tests
The issue was that CALL statements to stored procedures returning no
result sets were treated differently between memory and server engines:
- Memory engine: Returns OkResult for CALL statements with no result sets
- Server engine: Returns empty result sets instead of OkResult
This fix modifies the server engine's convertRowsResult function to:
1. Detect CALL statements that return no schema and no rows
2. Convert them to OkResult (consistent with memory engine behavior)
3. Exclude external procedures (prefixed with "memory_") which should
return empty results as expected by their tests
4. Preserve existing behavior for other statement types (USE, SHOW, etc.)
The fix ensures that stored procedure calls like those in TestStoredProcedures
return consistent OkResult behavior across both engine modes, while maintaining
correct empty result behavior for external procedures and other statements.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments