Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public bool Load()
        {
            try
            {
                driver.ReadFieldMetadata((int)fieldCount, ref fields);
                readSchema = true;

                values = new MySqlValue[fields.Length];
                for (int i = 0; i < fields.Length; i++)
                {
                    values[i] = fields[i].GetValueObject();
                }

                if (!driver.OpenDataRow(fields.Length, isBinary))
                {
                    readRows = true;
                    return(false);
                }
                dataRowOpen = true;

                return(true);
            }
            catch (Exception)
            {
                readSchema = true;
                readRows   = true;
                throw;
            }
        }