Subject Syntax in calling stored procedure
Author vmdd_tech
I have a stored procedure init_test which returns an integer.

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:
at java.lang.StringBuffer.charAt(
at org.firebirdsql.jdbc.FBEscapedCallParser.parseCall
at org.firebirdsql.jdbc.FBEscapedParser.convertProcedureCall
at org.firebirdsql.jdbc.FBEscapedParser.escapeToNative
at org.firebirdsql.jdbc.FBEscapedParser.parse
at org.firebirdsql.jdbc.AbstractConnection.nativeSQL
at org.firebirdsql.jdbc.AbstractStatement.internalExecute
at org.firebirdsql.jdbc.AbstractStatement.execute

So, did I use the wrong syntax or was it a driver bug?