/// <summary>
        /// Retrieves the i of a column, given its name
        /// </summary>
        /// <param name="name">The name of the column to retrieve</param>
        /// <returns>The int i of the column</returns>
        public override int GetOrdinal(string name)
        {
            CheckClosed();
            int r = _activeStatement._sql.ColumnIndex(_activeStatement, name);

            if (r == -1 && _keyInfo != null)
            {
                r = _keyInfo.GetOrdinal(name);
                if (r > -1)
                {
                    r += VisibleFieldCount;
                }
            }

            return(r);
        }