fix getting columns when sql source and no records returned in query.