| Message: 95424 |
 |
BY: Praveen Devarao (praveend) DATE: 2010-12-03 08:06 SUBJECT: RE: Blobs not being saved Hi Simon,
The results are making stuffs "interesting". The integer value passed is 0 (What I was expecting is the primary key value). I cant take this as the problem because if 0 was is then no column would have been update which means we had to atleast see the marker BLOB('?') inserted, but in your case it is an empty string.
Can you provide more details as below, might be these will help
With the patch applied and the puts statement (@ line 80 suggested earlier) in adapter can you let me know what is the output and also provide me the corresponding CLI trace?
Also can you run a irb session and issue a select statement on the table and check what is the value present in the row.
--------------------------------------------------
$irb
>>require 'ibm_db'
>>conn = IBM_DB.connect 'railsdb','user','password'
>>stmt = IBM_DB.exec conn, "select * from testtable where id = 10" #Give the id value that you see when reload issued
>> IBM_DB.fetch_assoc stmt
>> IBM_DB.close conn
>> quit
$
--------------------------------------------------
Thanks
Praveen | |