[Sqlrelay-discussion] NULL values from queries
Brought to you by:
mused
|
From: Dave S. <dsu...@co...> - 2006-03-14 11:00:06
|
I'm using the PEAR PHP interface for SQLRelay while modifying an application to support SQLRelay. I'm converting from the PEAR oci8 (Oracle) interface. I'm having a problem because of NULL values. I see the default for SQLRelay is to return empty strings instead of NULLs (sqlrcur_getNullsAsEmptyStrings) and this is problematic for the code (it is expecting NULLs). I see the function to change the setting to that NULLs are returned (sqlrcur_getNullsAsNulls). But, as I'm using the PEAR interface I don't see a way of making this function call when the cursor is created (except to modify the source DB/sqlrelay.php). Is there a way to modify this default value globally? I don't know that there is a reasonable way to modify the PEAR interface to make this configurable. Anyone have any suggestions? Thanks Dave |