From ktoepke@trilegiant.com Fri, 19 Oct 2001 06:00:37 -0700 From: "Toepke, Kevin M" Date: Fri, 19 Oct 2001 06:00:37 -0700 Subject: RE: slightly OT: visual c++ and null values Message-ID: MIME-Version: 1.0 Content-Type: text/plain Maria: The developers need to read the PRO*C manual. What the developers need to do is to use indicator variable. These are varaiables that indicate whether the variable is NULL (or if the value was truncated when selected into). Here is a short example. char v_first_name[18]; short v_first_name_ind; SELECT first_name INTO v_first_name:v_first_name_ind FROM emp WHERE emplid = :v_emplid:v_emplid_ind; I forget the values for the indicator variables, but that is in the PRO*C manual. HTH Kevin -----Original Message----- Sent: Friday, October 19, 2001 9:00 AM To: Multiple recipients of list ORACLE-L hello! our developers here are requesting that I put defaults (' ' for chars/varchars, 0 for numbers, etc) in place instead of nulls in all columns that would supposedly allow null values... they are using visual c++ and they say that they cannot make visual c++ retreive null values... i am very hesitant in implementing this... i have no knowledge whatsoever of visual c++ and don't know if this is true... i'd like to know if anyone had encountered this same problem before? or maybe someone can tell me if there is any truth to what our developers are saying... oracle817 on solaris7 thanks =) -- Maria Aurora VT de la Vega (OCP) Database Specialist Philippine Stock Exchange, Inc. -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Maria Aurora VT de la Vega INET: mtdelavega@pse.org.ph Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Toepke, Kevin M INET: ktoepke@trilegiant.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).