dbTalk Databases Forums  

Problem with database updation field

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Problem with database updation field in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Vignesh
 
Posts: n/a

Default Problem with database updation field - 05-26-2006 , 06:47 AM






When i try to update a varchar field the data is getting truncated
after it encounters '\x00' in between the data field:

Eg: data = "\x01\x02\x03\x00\x01\x02\x03".
The data available in the field is truncated to "\x01\x02\x03".

Do anybody know a solution for this.

The table schema is

CREATE TABLE TEST_TABLE (
FIRST VARCHAR(20) FOR BINARY WITH DEFAULT,
SECOND VARCHAR(10) WITH DEFAULT )


Reply With Quote
  #2  
Old   
Mehmet Baserdem
 
Posts: n/a

Default Re: Problem with database updation field - 05-26-2006 , 02:26 PM






Vignesh,

How do you update this value? Through CLP? Script? or a program? If it
works when you issue the same update statement in the CLP, then problem
might be in your script or your program.

FYI: When I use below stmt in CLP,

update temp_table set first_Col = x'01020300010203' where second_col =
'1'

It went through fine.

Regards,

Mehmet Baserdem


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.