Fix UniqueException message to indicate unique index violation#856
Conversation
…f 'Document already exists' Agent-Logs-Url: https://github.com/utopia-php/database/sessions/bd2e3ddb-ca02-49dc-9939-bb42093478e2 Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com>
Greptile SummaryUpdates the Confidence Score: 5/5Safe to merge — minimal, focused message-string change with no logic impact. All three adapters are updated consistently, no detection logic was altered, and no tests check the literal message text. No P0/P1 findings. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "Fix UniqueException message to say 'Uniq..." | Re-trigger Greptile |
UniqueExceptionwas using the same"Document already exists"message asDuplicateException, making it impossible to distinguish between a duplicate document ID and a unique index constraint violation from the error message alone.UniqueExceptionmessage to"Unique index violation"in all three adapters: MariaDB, SQLite, and PostgresDuplicateExceptionmessages remain unchanged as"Document already exists"is correct for that case