Skip to content

Commit

Permalink
Avoid errors getting unknown tables when we already know the query is…
Browse files Browse the repository at this point in the history
… not TDS-compatible
  • Loading branch information
MarkMpn committed Sep 5, 2023
1 parent b9470c3 commit c3fe6d9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ public override void Visit(ColumnReferenceExpression node)

private EntityMetadata TryGetEntity(string logicalname)
{
if (!IsCompatible)
return null;

if (_tableNames.TryGetValue(logicalname, out var tableName))
logicalname = tableName;

Expand Down

0 comments on commit c3fe6d9

Please sign in to comment.