|Subject||RE: [Firebird-Java] Re: Failure on PreparedStatement|
What seems weird is that if I don't use an input parameter on the PreparedStatement that the server has no problem with it. Maybe it is in the statement preparation that happens on the server? Something different when input parameters are passed?
From: Roman Rokytskyy [mailto:rrokytskyy@...]
Sent: Thursday, April 10, 2003 2:59 PM
Subject: [Firebird-Java] Re: Failure on PreparedStatement
> Okay, I've isolated the problem even though I'm still not sure why
> it happens. You should be able to reproduce this no problem.
> Go to your TestFBBlobParam.java file. Right after the CREATE_TABLE
> statement execution, populate it with one row. Try this:
> PreparedStatement ps = connection.prepareStatement( "INSERT INTO
> ClassMap(oid,className,mapping,codebase) VALUES (?,?,?,?);" );
> catch ( Exception e )
> throw e;
> Now you should see the same failure I was getting when you run the
> #testParams method. I still don't know what is causing the failure,
> but this should allow you to at least reproduce it. (The problem was
> that you had a table with blob fields but it had no data)
Thank you for the test! I have added some more debug output and found
that original stack trace is:
org.firebirdsql.gds.GDSException: internal error
This leads me to believe that the reason is comparison "=" operator on
blobs. I will ask this question in IB-Support list, since this is an
To unsubscribe from this group, send an email to:
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.