Commit e895c92
fix: initialize _pollingEnabled from operationParams to prevent Linux crash
The _pollingEnabled flag was never being initialized from the query's
polling parameter (operationParams->polling). This caused Cancel() to
take the wrong code path on Linux:
- With _pollingEnabled=false, Cancel() called SQLCancelHandle() directly
- SQLCancelHandle() called concurrently with SQLExecDirectW caused a
double-free crash on Linux (works on Windows)
Now _pollingEnabled is properly set from the operation params in the
constructor, so when polling mode is requested, the cooperative cancel
path is used (_cancelRequested flag) instead of direct SQLCancelHandle.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 8350a81 commit e895c92
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
0 commit comments