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 & .NET ODBC decimal problems

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-04, 09:09
badbytes badbytes is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
DB2 & .NET ODBC decimal problems

Hi,

I am using .NET ODBC to connect to a DB2 (7.2) database and I have
strange problems when I SELECT or INSERT/UPDATE a field with a DECIMAL
datatype.

SELECT:
I have a decimal value 0.01 and the query returns 1.00. I then set
the PATCH2=15 option in my db2cli.ini and it started to work.

INSERT/UPDATE:
Every time I try and write to a field of type decimal I get the following
error (regardless of whether I use PATCH2=15):

[22005] [IBM][CLI Driver] CLI0112E Error in assignment. SQLSTATE=22005

I explicitly set the parameters's datatype to decimal.

Has anyone experienced this before?

Thanks,

Matej
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