Commit f426b11
Fix sqlExecDiscardResult to use Decoders.noResult instead of rowsAffected
sqlExecDiscardResult was delegating to sqlExec which uses
sqlExecHasqlCount (Decoders.rowsAffected). This fails for SQL commands
like SET CONSTRAINTS ... DEFERRED that don't return a row count in their
command tag, causing UnexpectedResultStatementError "Empty bytes".
Now delegates to sqlExecHasql which uses Decoders.noResult instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 319b515 commit f426b11
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
305 | 306 | | |
306 | 307 | | |
307 | 308 | | |
| |||
0 commit comments