Skip to content

Commit

Permalink
NH-585 - Unknown version when using replicate and joined-subclass
Browse files Browse the repository at this point in the history
SVN: branches/1.2.x@3117
  • Loading branch information
Sergey Koshcheyev committed Nov 18, 2007
1 parent 4d71b9d commit 1442af8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NHibernate/Persister/Entity/AbstractEntityPersister.cs
Expand Up @@ -1583,14 +1583,14 @@ protected SqlString GenerateSelectVersionString()

if (IsVersioned)
{
builder.AddColumn(VersionColumnName);
builder.AddColumn(versionColumnName);
}
else
{
builder.AddColumns(IdentifierColumnNames);
builder.AddColumns(rootTableKeyColumnNames);
}

builder.AddWhereFragment(IdentifierColumnNames, IdentifierType, " = ");
builder.AddWhereFragment(rootTableKeyColumnNames, IdentifierType, " = ");

return builder.ToSqlString();
}
Expand Down

0 comments on commit 1442af8

Please sign in to comment.