I have a bool variable in my C++ code, I am bounding it as shown below:
SQLPOINTER cbNULL = SQL_NULL_DATA;
m_nReturnValue = SQLBindParameter(m_pHstmt,ColumnSequence,SQL_PARAM_INPUT,SQL_C_BIT,
issue is when *pBool = 1 (true),the values of binded parameters works fine but in case of *pBool = 0(false), it binds the value as 1 again. I cannot catch its reason why it is binding 1 instead of 0.
Can someone please help me for this how to bind the bool variable which has values as 0(false).?
View Complete Post