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 > DB2 > DB2 V7.2.5: problem with CHAR-fields - Error 01004

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-13-03, 12:32
pht pht is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
DB2 V7.2.5: problem with CHAR-fields - Error 01004

System: MS Win2k SP4 ofi , ADO 2.7, dirver: IBM OLEDB

Hi, I have following problem:

If I select a CHAR-field from the OS390 and the result includes any special characters (such as ü,ä,ö,..), some characters are lost. This problem is new in the version 7.2 (version of client and server), but we have not found a bugnote about it. The version 6.1 didn't have this problem.

The CLI (command line interface from IBM/DB2 -> don't use ODBC) don't have this problem, but all ADO-based applications (i.e. Delphi)

An example with the field DATA defined as CHAR(5):
a.) value of DATA = 'ABCDE'
A 'SELECT DATA.....' retrieves 'ABCDE'

b.) value of DATA = 'ÜÜÜÜÜ'
A 'SELECT DATA.....' retrieves 'ÜÜ' (with CLI we get 'ÜÜÜÜÜ')

In the ODBC-Trace we have found following information:
A function called SqlBindCol sets the length parameter of the destination
buffer to '6' (5 byte character with NULL-dermination). The DB2 driver only
fills the buffer with 2 characters and reports following message:

DIAG [01S01] [IBM][CLI Driver] CLI0165E Error in row. SQLSTATE=01S01
(-99999)
and
DIAG [01S01] [IBM][CLI Driver] CLI0002W Data truncated. SQLSTATE=01004
(-99999)


What's wrong?
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