Subject Re: Syntax in calling stored procedure
Author Roman Rokytskyy
> If I call it as:
> stmt.execute ("{call init_test()}");
>
> Then it works, and then I can get the result by calling
> stmt.getResultSet ().
>
> However, if I call the procedure like:
> stmt.execute ("{call init_test ()}"); //Notice a space before ()
>
> Then the program will throw an exception:
> java.lang.StringIndexOutOfBoundsException: String index out of
> range: 0
>
> So, did I use the wrong syntax or was it a driver bug?

Driver bug. I will fix it.

Thanks for post!

Roman