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.
Exception:
NHibernate.Exceptions.GenericADOException: could not insert:
[Entity.Test][SQL: INSERT INTO public."Test" ("Name") VALUES (?);
select lastval()] ---> Npgsql.NpgsqlException: ERROR: 42601: cannot
insert multiple commands into a prepared statement
Mapping File (truncated):
<class name="Test,Entity2" table="`Test`" >
<id name="Id" column="`BigId`" unsaved-value="0">
<generator class="identity" />
</id>
<property column="`Name`" type="String" name="Name" />
</class>
--
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.