Commit 3b9f3cb
fix(relational): bind @status param with casing matching SQL for SQLite (#155)
The GetQueueCount status-filtered path bound the parameter as "@Status"
while all three transport SQL texts use lowercase "@status". Npgsql and
Microsoft.Data.SqlClient match parameter names case-insensitively, so PG
and SQL Server worked, but System.Data.SQLite binds case-sensitively and
threw "Insufficient parameters supplied to the command".
This path was previously dead (the status-filtered admin Count was never
exercised), so the latent mismatch only surfaced once the new #155
regression test enabled status filtering on SQLite.
Align the parameter name to the SQL placeholder casing and harden the
unit test to assert the exact "@status" name (the FakeCommandStringCache
now mirrors the real lowercase SQL).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent c7a212c commit 3b9f3cb
3 files changed
Lines changed: 10 additions & 5 deletions
File tree
- Source
- DotNetWorkQueue.Transport.RelationalDatabase.Tests/Basic/QueryPrepareHandler
- DotNetWorkQueue.Transport.RelationalDatabase/Basic/QueryPrepareHandler
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | | - | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
59 | | - | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
0 commit comments