Commit 2f212c7
Use asyncpg constraint_name for duplicate upload detection
Check e.orig.constraint_name first (available on asyncpg's
UniqueViolationError), falling back to string matching for
backends that don't expose it (e.g. SQLite in tests).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3490416 commit 2f212c7
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
353 | 357 | | |
354 | 358 | | |
355 | 359 | | |
| |||
0 commit comments