Skip to content

Commit

Permalink
а была ли Областьданныхосновныеданные?
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasiliy Chernoivan committed Apr 10, 2018
1 parent cde4ab2 commit ff246d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Simple1C/Impl/Sql/Translation/QueryToSqlTranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,14 @@ public override SelectClause VisitSelect(SelectClause clause)
if (tableClause == null)
return base.VisitSelect(clause);
var tableMapping = mappingSource.ResolveTableByDbNameOrNull(tableClause.Name);
var property = tableMapping.GetByPropertyName("ОбластьДанныхОсновныеДанные");
if (property == null)
return base.VisitSelect(clause);
var areaExpression = new InExpression
{
Column = new ColumnReferenceExpression
{
Name = tableMapping.GetByPropertyName("ОбластьДанныхОсновныеДанные").SingleLayout.DbColumnName,
Name = property.SingleLayout.DbColumnName,
Table = clause.Source
},
Source = new ListExpression
Expand Down

0 comments on commit ff246d8

Please sign in to comment.