[Sqlrelay-discussion] Error Codes form SQLRelay into PHP
Brought to you by:
mused
|
From: Dave S. <dsu...@co...> - 2006-08-02 02:29:32
|
Hi, I have been doing some repurposing of some PHP code to use SQLRelay instead of the PEAR oci8 interface. And all is generally pretty good, but I have noticed some cases were we are checking for specific error conditions returned from the database and those conditions are not being met when using SQLRelay. An example of this is a case where we perform an insert and expect that we might get back the error DB_ERROR_ALREADY_EXISTS if the insert fails because the row already exists. But SQLRelay doesn't seem to care what the error is, it just returns the generic error DB_ERROR. Is there a way to get SQLRelay to know more information about the error that has been returned? We are using SQLRelay 0.37 which I believe is the latest. Thanks Dave Sugar dsu...@co... |