ExecuteFileSQL returns rows for result, but not the names for the fields returned. We just get data.
Could you add a variant of the function to return the field names, too?
e.g. like this:
errcode ExecuteFileSQL ( const Text &expression, const Text &filename, const DataVect ¶meters, RowVect& result, const DataVect &fieldNames );
Same as existing one, but with an additional fieldNames vector where you fill the names for the columns.
This would be very welcome for a few things. Currently we have to ask user for field names.