Hi All,

I get the "The database returned no natively generated identity" error 
suddenly in a working environment. I know this is not caused by an 
incremental field not incremented (as seen 
here 
http://stackoverflow.com/questions/7172657/org-hibernate-hibernateexception-the-database-returned-no-natively-generated-id)
 
because the DB and application was working up to that point.

SQL Statement: INSERT INTO tasks (FileId, DirectoryId, Reason, taskType) 
VALUES (?, ?, ?, ?) 
SQL Statement: SELECT LAST_INSERT_ID() 
Nhibernate full exception: Message: The database returned no natively 
generated identity value, Stacktrace: at 
NHibernateDBStrategy.Add(DALObjectAbstract Object) 

What could be the possible causes for this error other than that?

I found an old post from 2009 (a bug that was fixed) that relates to this 
https://nhibernate.jira.com/browse/NH-1917
It talks about a sudden disconnection in nHibernate that results in this 
error.

Any thoughts?

Thanks
Gil

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to