Subject | Re: Syntax in calling stored procedure |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-03-12T19:16:41Z |
> If I call it as:Driver bug. I will fix it.
> 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?
Thanks for post!
Roman