[unixODBC-dev] ODBC API
nick.gorham at easysoft.com
Fri Sep 23 09:13:53 BST 2005
Achintya Sharma wrote:
>This query is related to ODBC APIs...nothing specific to unixODBC. If you know the answer, please do let me know.
>I am trying out a simple ODBC program. For a nvarchar2 column, I am sending NULL data. If I pass the StrLen_or_IndPtr value as SQL_NULL_DATA, actually 'NULL' value is sent to the database. But if I set StrLen_or_IndPtr to 0, I get blank data in that column as I wanted. For this 0, theres no constant defined such as SQL_NULL or something in the default headers.
>Is there any alternate solution available so that I can get rid of these 'NULL' words in the database?
#define SQL_BUGGER_ALL 0
#define SQL_A_BIT_MORE_BUT_NOT_MUCH 1
More information about the unixODBC-dev