If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > OCI and text

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-28-03, 04:34
Forso Forso is offline
Registered User
 
Join Date: Mar 2003
Location: Italy
Posts: 17
OCI and text

Can anyone help me on this problem with oci?
I'm trying a simple query, it's a "SELECT ENAME FROM EMP WHERE EMPNO = 7839" from the scott/tiger Oracle example DB (this query correspond to a single row on the DB).
Well, when I call the OCIAttrGet method on a text type attribute, I can't read the value. If I call this method with a numeric parameter, it's all right. Example:

The next row works:
OCIAttrGet(&hParam, OCI_DTYPE_PARAM, &typeParam, NULL, OCI_ATTR_DATA_SIZE, &hErr)
and typeParam becomes 1 (2 for numeric values).

The next row doesn't work:
OCIAttrGet(&hParam, OCI_DTYPE_PARAM, &colName, NULL, OCI_ATTR_NAME, &hErr)
and colName becomes a set of strange characters.

Thank's
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On