result_set may contain more columns than user requested (for instance if some of them were needed to properly sort output). The additional columns are always the last ones and are not included in metadata::column_count(). Signed-off-by: Paweł Dziepak <pdziepak@cloudius-systems.com>