Musoq icon indicating copy to clipboard operation
Musoq copied to clipboard

RowNumber() doesn't work properly in where clause

Open Puchaczov opened this issue 6 years ago • 0 comments

the best description for this issue is how SQL code is transpiled to C# equivalent. Currently it is

for(....){
   queryStats.rowNumber+=1;
   if (...)
       ...
   ....
}

before changes it was

for (....){
 if(....)
    .....
 queryStats.rowNumber +=1;
}

which is also wrong. I think it should be mixed to have amended rowNumber either in if(...){...} clause and before for clause ends.

Puchaczov avatar Oct 12 '19 09:10 Puchaczov