Bug in Embedded Driver?

2007-03-31 Thread Xavier Hanin
Hi Derby community, I'm currently using Derby on a freshly started project, and I ran into an issue which seems to be a bug. Indeed the same code works well with the Client Driver, and not with the Embedded Driver. The error I get from Derby is: org.apache.derby.impl.jdbc.EmbedSQLException: An

Re: Bug in Embedded Driver?

2007-03-31 Thread Øystein Grøvlen
Xavier Hanin wrote: con.createStatement().executeUpdate(create table Issue ( ID char(50) )); PreparedStatement st = con.prepareStatement(select count(*) from Issue where ? is null); st.setNull(1, Types.VARBINARY); I do not think that CHAR and VARBINARY

Re: Bug in Embedded Driver?

2007-03-31 Thread Øystein Grøvlen
Xavier Hanin wrote: On 3/31/07, *Øystein Grøvlen* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Xavier Hanin wrote: con.createStatement().executeUpdate(create table Issue ( ID char(50) )); PreparedStatement st = con.prepareStatement(select

Re: Bug in Embedded Driver?

2007-03-31 Thread Xavier Hanin
On 3/31/07, Øystein Grøvlen [EMAIL PROTECTED] wrote: Xavier Hanin wrote: On 3/31/07, *Øystein Grøvlen* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Xavier Hanin wrote: con.createStatement().executeUpdate(create table Issue ( ID char(50) ));

function in derby[beginner]

2007-03-31 Thread Tony Winslow
I have this class: public class Say { public static int say(int i) { System.out.println(* Say: + i); return i; } public static int say2(String msg) { System.out.println(** + msg); return 1; } } and I created a function in Derby: create function say2(msg varchar(50)) returns

Re: Bug in Embedded Driver?

2007-03-31 Thread Oystein Grovlen - Sun Norway
Xavier Hanin wrote: On 3/31/07, *Øystein Grøvlen* [EMAIL PROTECTED] I'm using version 10.2.2.0 http://10.2.2.0. There have been some fixes in this area lately (see DERBY-1610), and I will try your test case on the development trunk later today. Ok, thanks a lot. I tried