gallium: adapt to get_query_result interface change