Example #1
0
        public static PyObject DBResultToCRowset(ref MySqlDataReader result)
        {
            DBRowDescriptor header = new DBRowDescriptor(ref result);
            CRowset         rowset = new CRowset(header);

            while (result.Read())
            {
                rowset.Insert(CreatePackedRow(header, ref result));
            }

            return(rowset.Encode());
        }
Example #2
0
        public static PyObject DBResultToCRowset(ref MySqlDataReader result)
        {
            DBRowDescriptor header = new DBRowDescriptor(ref result);
            CRowset rowset = new CRowset(header);

            while (result.Read())
            {
                rowset.Insert(CreatePackedRow(header, ref result));
            }

            return rowset.Encode();
        }