Ticket #553 (closed Feature Request: duplicate)

Opened 8 months ago

Last modified 5 months ago

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?

Change History

Changed 8 months ago by Shadowhand

  • milestone set to 2.2

Changed 5 months ago by Shadowhand

  • status changed from new to closed
  • resolution set to duplicate

This functionality will be part of #204.

Note: See TracTickets for help on using tickets.