Subject | Re: Obscure error |
---|---|
Author | Roman Rokytskyy <rrokytskyy@acm.org> |
Post date | 2003-02-06T16:14:15Z |
> I get an error from some data which is in an odd state. I'm afraidCan you suggest how to get such field? I see the place in the code
> I'm not sure how best to describe it, but it's a blob that has no
> content, but is not defined as null. This is the error (through
> ColdFusion MX):
where this happens, but I hardly see how can it happen. This code is
in FBLongVarCharField.getBlob():
if (rs.row[numCol]==null)
return BLOB_NULL_VALUE;
Long blobId = new Long(XSQLVAR.decodeLong(rs.row[numCol]));
At this point blobId is equal to new Long(0), which for FBBlob
implementation means "create new blob". There is either bug in FBBlob
assuming that there can be no 0 blob ID, or in long decoding
function. But say that for sure I will need some idea how to
reproduce this bug.
> Hope this helps, please let me know if I can be a little moreA test case would be great!
> specific or if you want me to try something.
Thanks!
Roman Rokytskyy