File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,26 @@ public async Task CancelCommandWithTokenBeforeExecuteReader()
231
231
[ Fact ]
232
232
public async Task CancelCompletedCommand ( )
233
233
{
234
+ await m_database . Connection . ExecuteAsync ( @"drop table if exists cancel_completed_command;
235
+ create table cancel_completed_command (
236
+ id bigint unsigned,
237
+ value varchar(45)
238
+ );" ) . ConfigureAwait ( false ) ;
239
+
234
240
using ( var cmd = m_database . Connection . CreateCommand ( ) )
235
241
{
236
- cmd . CommandText = @"select 1 ;" ;
242
+ cmd . CommandText = @"insert into cancel_completed_command (id, value) values (1, null) ;" ;
237
243
238
244
using ( await cmd . ExecuteReaderAsync ( ) . ConfigureAwait ( false ) )
239
245
cmd . Cancel ( ) ;
240
246
}
247
+
248
+ using ( var cmd = m_database . Connection . CreateCommand ( ) )
249
+ {
250
+ cmd . CommandText = @"update cancel_completed_command SET value = ""value"" where id = 1;" ;
251
+
252
+ await cmd . ExecuteNonQueryAsync ( ) . ConfigureAwait ( false ) ;
253
+ }
241
254
}
242
255
243
256
[ UnbufferedResultSetsFact ]
You can’t perform that action at this time.
0 commit comments