Permalink
Browse files

NH-585 - Unknown version when using replicate and joined-subclass

SVN: branches/1.2.x@3117
  • Loading branch information...
Sergey Koshcheyev
Sergey Koshcheyev committed Nov 18, 2007
1 parent 4d71b9d commit 1442af80054d950a725918fcc015e8182247ffbc
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/NHibernate/Persister/Entity/AbstractEntityPersister.cs
@@ -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();
}

0 comments on commit 1442af8

Please sign in to comment.