Test NH826 fails on PostgreSQL

Description

Unit test NHibernate.Test.NHSpecificTest.NH826.Fixture.Bug() fails on PostgreSQL and will fail on any database with sequence id generator.

This test create first an entity "activity" and then create an other one named "activitySet".
Those two entities are mapped in two distinct tables. With identity column there each get the value 1 as id, but with sequence the "activity" get id 1 and "activitySet" id 2.

Then, the test execute that query:
session.CreateCriteria(typeof(ActivitySet)).Add(Expression.Expression.Eq("Id", 1))

But it should get the id from the activitySet to avoid the previously explained difference:
session.CreateCriteria(typeof(ActivitySet)).Add(Expression.Expression.Eq("Id", activitySet.Id))

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created February 19, 2007 at 10:07 AM
Updated February 20, 2007 at 11:54 PM
Resolved February 20, 2007 at 11:54 PM
Who's Looking?