Subject | Re: [Firebird-Java] Re: Empty blob query problem |
---|---|
Author | David Jencks |
Post date | 2002-07-27T20:10:15Z |
We need to investigate this further and make sure that trying to read a
just-created blob does not cause worse problems with your change. Could
you please file a bug report on sourceforge with a summary of the problem
and this suggested fix? If you get the time to write a junit test case to
run in the testsuite that would be wonderful.
Thanks
david jencks (I think I wrote the code you removed)
just-created blob does not cause worse problems with your change. Could
you please file a bug report on sourceforge with a summary of the problem
and this suggested fix? If you get the time to write a junit test case to
run in the testsuite that would be wonderful.
Thanks
david jencks (I think I wrote the code you removed)
On 2002.07.24 19:57:21 -0400 William L. Thomson Jr. wrote:
> Solution.
>
> Maybe a hack but will save time for now trying to figure out why.
>
> I just changed
>
> private FBBlobInputStream() throws SQLException {
> if (blob_id == 0) {
> throw new SQLException("You can't read a new blob");
> }
> try {
> blob = c.openBlobHandle(blob_id);
> }
> catch (GDSException ge) {
> throw new SQLException("couldn't open blob: " + blob_id + "
> exception: " + ge.toString());
> }
> }
>
> To
>
>
> private FBBlobInputStream() throws SQLException {
> try {
> blob = c.openBlobHandle(blob_id);
> }
> catch (GDSException ge) {
> throw new SQLException("couldn't open blob: " + blob_id + "
> exception: " + ge.toString());
> }
> }
>
> And voila my app works without that damn error. Now I do not know if it
> will effect other things later, but as long as that error is gone I am a
> happy camper.
>
> So unless who ever wrote that function has a good reason to have that if
> statement in there, I am all for just tossing it out.
>
> As that is what solved my problem.
>
> Sorry for not doing my part to look into that and take care of it
> sooner.
>
> Does this qualify me to become part of the project. :)
>
> Anyway let me know, till then I will use the version I just modified and
> compiled. So I can get rid of that damn exception, and my apps can
> function as intended.
>
> --
> Sincerely,
> William L. Thomson Jr.
> Support Group
> Obsidian-Studios Inc.
> 439 Amber Way
> Petaluma, Ca. 94952
> Phone 707.766.9509
> Fax 707.766.8989
> http://www.obsidian-studios.com
>
>
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>