Skip to content

Commit 610dbdb

Browse files
committed
Implement MySqlDataReader.Depth.
1 parent 4fb39ab commit 610dbdb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/MySqlConnector/Core/ResultSet.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ Row ScanRowAsyncRemainder(PayloadData payload, Row row_)
263263
}
264264
}
265265

266+
public int Depth => 0;
267+
266268
public string GetName(int ordinal)
267269
{
268270
if (ColumnDefinitions == null)

src/MySqlConnector/MySql.Data.MySqlClient/MySqlDataReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public override long GetChars(int ordinal, long dataOffset, char[] buffer, int b
205205

206206
public override IEnumerator GetEnumerator() => new DbEnumerator(this, closeReader: false);
207207

208-
public override int Depth => throw new NotSupportedException();
208+
public override int Depth => GetResultSet().Depth;
209209

210210
protected override DbDataReader GetDbDataReader(int ordinal) => throw new NotSupportedException();
211211

0 commit comments

Comments
 (0)