Closed rkosafo closed 6 years ago
Problem was the T-SQL output would never parenthesize the EXPR in:
select top EXPR col1, col2, col3 from tbl
This works if EXPR is a literal like select top 1
but not for more complex expressions, including parameter references. They need parentheses, e.g. select top (@parameter)
.
I've released 0.7.1 with the simple fix for this.
https://www.nuget.org/packages/Rezoom.SQL.Provider/0.7.1.10316
Issue resolved using the new nuget package. Thanks.
I get the error below when I execute a query with limit specified as a variable.
To reproduce
Using Rezoom.SQL.Provider.TSQL v0.7.0 Rezoom.SQL.Provider v0.7.0.36923 Rezoom v0.4.2