The change happened in revision 3568 and is related to this issue:
Issue 308: Statement.getGeneratedKeys() now returns an empty result
set if no key was generated.
The relevant code change is in the CommandContainer#update() method,
where it calls session.setLastIdentity(ValueNull.INSTANCE)
Unfortunately I'm not sure how to fix this. Thomas, the easiest way to
test this is:
create table test(id identity primary key);
insert into test values();
set @x = identity();
select @x;
which will return null instead of a valid number.