Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
* Changed InvalidCastException to InvalidOperationException in YdbParameter.
* Added specification tests: YdbCommandTests and YdbParameterTests.
* YdbConnection.Database returns string.Empty if ConnectionStringBuilder is null.
* Propagated cancellationToken in Execute[.*]Async methods.
* When YdbCommand has an open data reader, it throws InvalidOperationException on the setters: CommandText, DbConnection.
* Added checkers to YdbCommand.Prepare().
* CommandText getter doesn't throw an exception if the CommandText property has not been initialized.

## v0.11.0
* Fix bug: GetValue(int ordinal) return DBNull.Value if fetched NULL value.
* Fix: NextResult() moves to the next result and skip the first ResultSet.
Expand Down
2 changes: 1 addition & 1 deletion src/Ydb.Sdk/src/Ado/YdbCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public override string CommandText
[param: AllowNull]
set
{
if (_ydbConnection?.LastReader?.IsOpen ?? false)
if (_ydbConnection?.IsBusy ?? false)
{
throw new InvalidOperationException("An open data reader exists for this command");
}
Expand Down
Loading