PluginSDK: ExecuteFileSQL variant with field names

Idea created by monkeybreadsoftware on Jun 4, 2016
    Active
    Score8
    • FileKraft
    • MiniSchmitz
    • Benjamin Fehr
    • dylan_hudson
    • rigman
    • monkeybreadsoftware
    • Vincent_L
    • hherbst

    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 &parameters, 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.