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 PreparedStatement truncates data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-29-04, 04:28
raavik1 raavik1 is offline
Registered User
 
Join Date: Jan 2004
Posts: 1
Question DB2 PreparedStatement truncates data

Why does the DB2 PreparedStatement( in db2java.zip) truncate extra charatcer data when the length is more than the defined column length?.
Using a Statement throws an error but not while using a PreparedStatement. Why so?

Ho do I indicate to the driver to throw an error while using PreparedStatement in case the data to be inserted exceeds the defined column length?
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