Open max-ostapenko opened 2 months ago
When iterating an operation over the months I'm using while loop and a dynamic date variable in the SQL template.
while
I see something strange happens to the iterator variable within the SQL template.
Example:
let i = 0; while (i <= 1) { operate(`while ${i}`).queries(ctx => ` SELECT '${i}' AS value `); i++; }
I get the following compiled SQLs:
Operation "while 0"
SELECT '2' AS value
Operation "while 1"
forEach
for
ctx =>
Originally reported here: https://issuetracker.google.com/issues/365808530
When iterating an operation over the months I'm using
while
loop and a dynamic date variable in the SQL template.I see something strange happens to the iterator variable within the SQL template.
Example:
I get the following compiled SQLs:
Operation "while 0"
Operation "while 1"
forEach
andfor
loops work OK,ctx =>
it works OK too.Originally reported here: https://issuetracker.google.com/issues/365808530