It seems like a horrible kludge to me, but without knowing more about the process here I would say there is at least one solution - include the values in the rows returned. You can use a UNION clause (or clauses) to insert 'fake' rows into the result set (before or after it), e.g.
SELECT 9999, 0
UNION
SELECT foo, foo2 FROM myTable