File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 33 <PropertyGroup >
44 <TargetFramework >netstandard2.0</TargetFramework >
55 <Title >CSQLQueryExpress</Title >
6- <Version >1.4.4 </Version >
6+ <Version >1.4.5 </Version >
77 <Description >A simple c# library to compile TSQL queries</Description >
88 <PackageProjectUrl ></PackageProjectUrl >
99 <PackageReadmeFile >README.md</PackageReadmeFile >
Original file line number Diff line number Diff line change @@ -63,8 +63,14 @@ public string GetTableName(Type tableType)
6363
6464 public string GetColumnsWithoutTableAlias ( string column )
6565 {
66- var tableAlias = _matchColumnOnly . Match ( column ) . Groups [ 0 ] . Value ;
67- return column . Replace ( tableAlias , string . Empty ) ;
66+ var match = _matchColumnOnly . Match ( column ) ;
67+ if ( match . Success )
68+ {
69+ var tableAlias = match . Groups [ 0 ] . Value ;
70+ return column . Replace ( tableAlias , string . Empty ) ;
71+ }
72+
73+ return column ;
6874 }
6975
7076 private bool _memberExpressionFromBinaryExpression ;
You can’t perform that action at this time.
0 commit comments