db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4970) ClassCastException from getBlob() on string parameter
Date Wed, 12 Jan 2011 20:02:46 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Knut Anders Hatlen updated DERBY-4970:
--------------------------------------

    Issue & fix info: [Patch Available, Repro attached]  (was: [Repro attached])

I got one failure in suites.All when I ran the tests, a network server failed to start. It's
probably not related to the patch, but I'll rerun the tests just in case. Setting the patch
available flag.

> ClassCastException from getBlob() on string parameter
> -----------------------------------------------------
>
>                 Key: DERBY-4970
>                 URL: https://issues.apache.org/jira/browse/DERBY-4970
>             Project: Derby
>          Issue Type: Bug
>          Components: JDBC
>    Affects Versions: 10.7.1.1
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d4970-withTests.diff, d4970.diff, Test.java
>
>
> If you call getBlob() on a string parameter in a CallableStatement, you'll get a ClassCastException.
We should get a proper SQLException.
> Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast
to java.sql.Blob
>         at org.apache.derby.impl.jdbc.EmbedCallableStatement.getBlob(EmbedCallableStatement.java:580)
>         at Test.main(Test.java:13)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message