Bug23

return -1 from LastInsertId if @@identity returns NULL