Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: JDBC execute statement with Brackets - NullPointerException
Hi,
I have tried whith OracleStatement, standard Statement and with all the three execute methods (execute, executeUpdate, executeQuery).
Result : KO all times with the same NullPointerException.
Other SQL statements (DDL) works fine, but creating an Oracle Java Stored Procedure fails every time.
Regs,
Olivier
joeNOSPAM_at_BEA.com a écrit :
> > On Jan 22, 2:19 pm, Olivier Guyot <olivier.guy..._at_free.fr> wrote:
> > > Hi. Don't call executeUpdate() or executeQuery(), just call execute(). > Oracle can't return 'inline' result sets for executeQuery()'s mandated > ResultSet return value, and executeUpdate() wants to return a row > count of the number of rows affected by an update. Execute() will do > everything, and afterwards you can process any returns. > Joe Weinstein at BEA Systems >Received on Tue Jan 23 2007 - 05:37:28 CST