Commit cc09167
committed
Improve error message for unsupported named parameters:
Previously just 'Illegal parameter number' was logged, make this a more
helpful message.
```
[25-05-06 20:46:04.2629] Slim::Schema::Storage::throw_exception (122) Error: DBI Exception: DBD::mysql::st bind_param failed: named parameters are unsupported: :album [for Statement "
SELECT contributor_album.role AS role, contributors.name AS name, contributors.id AS id
FROM contributor_album
JOIN contributors ON contributors.id = contributor_album.contributor
WHERE contributor_album.album = :album
AND contributor_album.role IN (5,1)
ORDER BY contributor_album.role, contributors.namesort
"]
```1 parent 8c6c960 commit cc09167
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4209 | 4209 | | |
4210 | 4210 | | |
4211 | 4211 | | |
| 4212 | + | |
| 4213 | + | |
| 4214 | + | |
| 4215 | + | |
| 4216 | + | |
| 4217 | + | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
4212 | 4229 | | |
4213 | 4230 | | |
4214 | 4231 | | |
| |||
0 commit comments