Skip to content

Commit 0fd5006

Browse files
committed
DNET749 test CommandBehaviorCloseConnectionStackOverflow
1 parent a5203d4 commit 0fd5006

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Provider/src/FirebirdSql.Data.UnitTests/FbDataReaderTests.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,22 @@ public void DNET183_VarcharSpacesShouldNotBeTrimmed()
430430
}
431431
}
432432

433+
[Test]
434+
public void DNET749_CommandBehaviorCloseConnectionStackOverflow()
435+
{
436+
using (var cmd = Connection.CreateCommand())
437+
{
438+
cmd.CommandText = "select * from rdb$database";
439+
var reader = cmd.ExecuteReader(CommandBehavior.CloseConnection);
440+
{
441+
while (reader.Read())
442+
{
443+
444+
}
445+
}
446+
}
447+
}
448+
433449
#endregion
434450
}
435451
}

0 commit comments

Comments
 (0)