On 2011-02-22 21:39, wibber wrote:
NH-2267 updated NpgsqlDriver to use prepared statements.
Unfortunately, this means that I can't get the identity generator to
work. Anybody got a good work-around for this yet? I'm thinking
about extending the postgres dialect to use the "returning [id]". I'm
not sure where to get the "id" inside the IdentitySelectString method.
As a work around: Consider using HiLo generator.
Unless for some reason you really have to use DB-generated keys, HiLo is
the best choice for integer PKs. You might want to stick with it even
after the issue gets resolved.
Filip Zawada
--
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers?hl=en.