We have a macro with multiple select statements. When each statement has records to return they all run. If the first select statement returns no records all subsequent select statements return no records.
replace macro db.mn
where row_num = 10
where row_num = 11
In the case when row_num has values of both 10 and 11 this macro generates to results sets. When row_num has value of 10 but not 11 the macro generates a valid result set for the first statement and an empty (valid) result set for the second statement.
The problem: When row_num has no value 10 and has value 11 the macro generates an empty result set for the first statement (valid) and an empty result set for the second statement (not valid!).
How should this be written so that the macro will run if the first statement finds no records?
There's already 13.11:
I just tried it on:
- 13.11.00.02: ok
- 13.10.00.06: ok for a .NET connection, but for ODBC it's still wrong
The latest patch level for 13.10 is probably 18.104.22.168, maybe this corrects it.
You might also post a coment in Mike Dempsey's article on 13.10 when it will be fixed.