[
http://issues.apache.org/jira/browse/DERBY-1314?page=comments#action_12378917 ]
Knut Anders Hatlen commented on DERBY-1314:
-------------------------------------------
The JDBC 3.0 javadoc for Statement.executeUpdate() says:
Returns: either the row count for INSERT, UPDATE or DELETE
statements, or 0 for SQL statements that return nothing
Throws: SQLException - if a database access error occurs or the
given SQL statement produces a ResultSet object
Embedded behaves correctly when no result sets are produced by the
stored procedure, and the client behaves correctly when result sets
are produced.
> Differences between client and embedded when invoking stored procedures using
> Statement.executeUpdate()
> -------------------------------------------------------------------------------------------------------
>
> Key: DERBY-1314
> URL: http://issues.apache.org/jira/browse/DERBY-1314
> Project: Derby
> Type: Bug
> Components: JDBC
> Versions: 10.2.0.0
> Reporter: Knut Anders Hatlen
>
> When invoking a stored procedure using Statement.executeUpdate(), the
> client driver and the embedded driver behave differently.
> If the stored procedure does not return any result set, the embedded
> driver returns 0, whereas the client returns -1.
> If the stored procedure returns one or more result sets, the embedded
> driver returns -1, whereas the client fails with an exception.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira