db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eranda Sooriyabandara <0704...@gmail.com>
Subject problem with cast (null as int)
Date Sun, 02 Aug 2009 18:29:54 GMT
Hi,
There is a problem with
rs = st.executeQuery(
            "values (3, cast (null as int))");
And it gave the error
Exception in thread "main" java.sql.SQLDataException: An attempt was made to
get a data value of type 'INTEGER' from a data value of type 'null'.

Are there any reasons for this error occurring?
Thanks
Eranda

Mime
View raw message