Ticket #553 (closed Feature Request: duplicate)
Native Database Error Codesa
| Reported by: | vijinho | Owned by: | zombor |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.2 |
| Component: | Libraries:Database | Version: | SVN HEAD |
| Keywords: | Cc: |
Description
http://forum.kohanaphp.com/comments.php?DiscussionID=293
I recently posted to the forums about supporting the returning of the native database error codes in addition to the message that's returned when a Kohana_Database_Exception is thrown.
Ideally to handle multiple DBMS's this would require a conversion between the native error codes and an equivalent in Kohana that is DBMS independent in order to remain DBMS-independent in the application code, rather than wired to handle the codes of a particular DBMS (MySQL in my case)
Perhaps that's too much code-bloat as it would mean the DB code begins to look more like PEAR MDB2 classes?
