Hi,

I believe that it should return 0.
The JDBC API says that executeUpdate should return:
"either the row count for INSERT, UPDATE  or DELETE statements, or 0
for SQL statements that return nothing"
Other databases also return 0.

Regards,
Thomas


On Fri, Oct 10, 2008 at 10:30 PM, Pavel <[EMAIL PROTECTED]> wrote:
>
> CreateTable.java update method always return 0.
>
>
> On line 185 count returned by the update call should be used.
>
> OLD:
>                     insert.update();
> NEW:
>                    count = insert.update();
> (I assume that new local variable count would be initialized to 0 at
> the beginning of the method)
>
> OLD:
>         return 0;
> NEW:
>          return count;
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to