wkim / h2database

Automatically exported from code.google.com/p/h2database
0 stars 0 forks source link

Error occurs in org.h2.tools.SimpleResultSet.getBinaryStream or getBytes #407

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Before submitting a bug, please check the FAQ:
http://www.h2database.com/html/faq.html

What steps will reproduce the problem?
(simple SQL scripts or simple standalone applications are preferred)
1.
2.
3.

What is the expected output? What do you see instead?

org.h2.tools.SimpleResultSet which is used in TriggerAdapter#fire method has 
the following problem.

When getBinaryStream method invokes the following exception occurs
   java.lang.ClassCastException: org.h2.store.LobStorage$LobInputStream cannot be cast to java.sql.Blob
and getBytes method invokes
   java.lang.ClassCastException: org.h2.store.LobStorage$LobInputStream cannot be cast to [B

What version of the product are you using? On what operating system, file
system, and virtual machine?

h2-1.3.167.jar
Darwin Kernel Version 11.4.0

Do you know a workaround?

What is your use case, meaning why do you need this feature?

How important/urgent is the problem for you?

Please provide any additional information below.

Original issue reported on code.google.com by evanesce...@gmail.com on 2 Jul 2012 at 9:44

GoogleCodeExporter commented 8 years ago
This will be fixed in the next release.

Original comment by thomas.t...@gmail.com on 30 Oct 2012 at 6:55

GoogleCodeExporter commented 8 years ago
Fixed in version 1.3.170

Original comment by thomas.t...@gmail.com on 30 Nov 2012 at 6:51