Skip to content

Commit c43a1bf

Browse files
committed
Type of the key of the result collection changed from "uint" to "short".
1 parent 124e5f3 commit c43a1bf

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

src/FirebirdSql.Data.FirebirdClient/FirebirdClient/FbDatabaseInfo.cs

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -228,137 +228,137 @@ public Task<int> GetWritesAsync(CancellationToken cancellationToken = default)
228228
/// Returns the number of removals of a version of a record of the affected tables.
229229
/// </summary>
230230
/// <returns>Dictionary with the number of removals, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
231-
public IDictionary<uint, ulong> GetBackoutCount()
231+
public IDictionary<short, ulong> GetBackoutCount()
232232
{
233-
return GetValue<IDictionary<uint, ulong>>(IscCodes.isc_info_backout_count);
233+
return GetValue<IDictionary<short, ulong>>(IscCodes.isc_info_backout_count);
234234
}
235235
/// <summary>
236236
/// Returns the number of removals of a version of a record of the affected tables.
237237
/// </summary>
238238
/// <returns>Dictionary with the number of removals, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
239-
public Task<IDictionary<uint, ulong>> GetBackoutCountAsync(CancellationToken cancellationToken = default)
239+
public Task<IDictionary<short, ulong>> GetBackoutCountAsync(CancellationToken cancellationToken = default)
240240
{
241-
return GetValueAsync<IDictionary<uint, ulong>>(IscCodes.isc_info_backout_count, cancellationToken);
241+
return GetValueAsync<IDictionary<short, ulong>>(IscCodes.isc_info_backout_count, cancellationToken);
242242
}
243243

244244
/// <summary>
245245
/// Returns the number of database deletes of the affected tables since the database was last attached.
246246
/// </summary>
247247
/// <returns>Dictionary with the number of deletes, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
248-
public IDictionary<uint, ulong> GetDeleteCount()
248+
public IDictionary<short, ulong> GetDeleteCount()
249249
{
250-
return GetValue<IDictionary<uint, ulong>>(IscCodes.isc_info_delete_count);
250+
return GetValue<IDictionary<short, ulong>>(IscCodes.isc_info_delete_count);
251251
}
252252
/// <summary>
253253
/// Returns the number of database deletes of the affected tables since the database was last attached.
254254
/// </summary>
255255
/// <returns>Dictionary with the number of deletes, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
256-
public Task<IDictionary<uint, ulong>> GetDeleteCountAsync(CancellationToken cancellationToken = default)
256+
public Task<IDictionary<short, ulong>> GetDeleteCountAsync(CancellationToken cancellationToken = default)
257257
{
258-
return GetValueAsync<IDictionary<uint, ulong>>(IscCodes.isc_info_delete_count, cancellationToken);
258+
return GetValueAsync<IDictionary<short, ulong>>(IscCodes.isc_info_delete_count, cancellationToken);
259259
}
260260

261261
/// <summary>
262262
/// Returns the number of removals of a record and all of its ancestors, for records whose deletions have been committed of the affected tables since the database was last attached.
263263
/// </summary>
264264
/// <returns>Dictionary with the number of removals, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
265-
public IDictionary<uint, ulong> GetExpungeCount()
265+
public IDictionary<short, ulong> GetExpungeCount()
266266
{
267-
return GetValue<IDictionary<uint, ulong>>(IscCodes.isc_info_expunge_count);
267+
return GetValue<IDictionary<short, ulong>>(IscCodes.isc_info_expunge_count);
268268
}
269269

270270
/// <summary>
271271
/// Returns the number of removals of a record and all of its ancestors, for records whose deletions have been committed of the affected tables since the database was last attached.
272272
/// </summary>
273273
/// <returns>Dictionary with the number of removals, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
274-
public Task<IDictionary<uint, ulong>> GetExpungeCountAsync(CancellationToken cancellationToken = default)
274+
public Task<IDictionary<short, ulong>> GetExpungeCountAsync(CancellationToken cancellationToken = default)
275275
{
276-
return GetValueAsync<IDictionary<uint, ulong>>(IscCodes.isc_info_expunge_count, cancellationToken);
276+
return GetValueAsync<IDictionary<short, ulong>>(IscCodes.isc_info_expunge_count, cancellationToken);
277277
}
278278

279279
/// <summary>
280280
/// Returns the number of inserts into the database of the affected tables since the database was last attached.
281281
/// </summary>
282282
/// <returns>Dictionary with the number of inserts, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
283-
public IDictionary<uint, ulong> GetInsertCount()
283+
public IDictionary<short, ulong> GetInsertCount()
284284
{
285-
return GetValue<IDictionary<uint, ulong>>(IscCodes.isc_info_insert_count);
285+
return GetValue<IDictionary<short, ulong>>(IscCodes.isc_info_insert_count);
286286
}
287287
/// <summary>
288288
/// Returns the number of inserts into the database of the affected tables since the database was last attached.
289289
/// </summary>
290290
/// <returns>Dictionary with the number of inserts, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
291-
public Task<IDictionary<uint, ulong>> GetInsertCountAsync(CancellationToken cancellationToken = default)
291+
public Task<IDictionary<short, ulong>> GetInsertCountAsync(CancellationToken cancellationToken = default)
292292
{
293-
return GetValueAsync<IDictionary<uint, ulong>>(IscCodes.isc_info_insert_count, cancellationToken);
293+
return GetValueAsync<IDictionary<short, ulong>>(IscCodes.isc_info_insert_count, cancellationToken);
294294
}
295295

296296
/// <summary>
297297
/// Returns the number of removals of old versions of fully mature records (records that are committed, so that older ancestor versions are no longer needed) of the affected tables.
298298
/// </summary>
299299
/// <returns>Dictionary with the number of removals, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
300-
public IDictionary<uint, ulong> GetPurgeCount()
300+
public IDictionary<short, ulong> GetPurgeCount()
301301
{
302-
return GetValue<IDictionary<uint, ulong>>(IscCodes.isc_info_purge_count);
302+
return GetValue<IDictionary<short, ulong>>(IscCodes.isc_info_purge_count);
303303
}
304304
/// <summary>
305305
/// Returns the number of removals of old versions of fully mature records (records that are committed, so that older ancestor versions are no longer needed) of the affected tables.
306306
/// </summary>
307307
/// <returns>Dictionary with the number of removals, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
308-
public Task<IDictionary<uint, ulong>> GetPurgeCountAsync(CancellationToken cancellationToken = default)
308+
public Task<IDictionary<short, ulong>> GetPurgeCountAsync(CancellationToken cancellationToken = default)
309309
{
310-
return GetValueAsync<IDictionary<uint, ulong>>(IscCodes.isc_info_purge_count, cancellationToken);
310+
return GetValueAsync<IDictionary<short, ulong>>(IscCodes.isc_info_purge_count, cancellationToken);
311311
}
312312

313313
/// <summary>
314314
/// Returns the number of reads done via an index of the affected tables since the database was last attached.
315315
/// </summary>
316316
/// <returns>Dictionary with the number of reads, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
317-
public IDictionary<uint, ulong> GetReadIdxCount()
317+
public IDictionary<short, ulong> GetReadIdxCount()
318318
{
319-
return GetValue<IDictionary<uint, ulong>>(IscCodes.isc_info_read_idx_count);
319+
return GetValue<IDictionary<short, ulong>>(IscCodes.isc_info_read_idx_count);
320320
}
321321
/// <summary>
322322
/// Returns the number of reads done via an index of the affected tables since the database was last attached.
323323
/// </summary>
324324
/// <returns>Dictionary with the number of reads, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
325-
public Task<IDictionary<uint, ulong>> GetReadIdxCountAsync(CancellationToken cancellationToken = default)
325+
public Task<IDictionary<short, ulong>> GetReadIdxCountAsync(CancellationToken cancellationToken = default)
326326
{
327-
return GetValueAsync<IDictionary<uint, ulong>>(IscCodes.isc_info_read_idx_count, cancellationToken);
327+
return GetValueAsync<IDictionary<short, ulong>>(IscCodes.isc_info_read_idx_count, cancellationToken);
328328
}
329329

330330
/// <summary>
331331
/// Returns the number of sequential table scans (row reads) of the affected tables since the database was last attached.
332332
/// </summary>
333333
/// <returns>Dictionary with the number of reads, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
334-
public IDictionary<uint, ulong> GetReadSeqCount()
334+
public IDictionary<short, ulong> GetReadSeqCount()
335335
{
336-
return GetValue<IDictionary<uint, ulong>>(IscCodes.isc_info_read_seq_count);
336+
return GetValue<IDictionary<short, ulong>>(IscCodes.isc_info_read_seq_count);
337337
}
338338
/// <summary>
339339
/// Returns the number of sequential table scans (row reads) of the affected tables since the database was last attached.
340340
/// </summary>
341341
/// <returns>Dictionary with the number of reads, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
342-
public Task<IDictionary<uint, ulong>> GetReadSeqCountAsync(CancellationToken cancellationToken = default)
342+
public Task<IDictionary<short, ulong>> GetReadSeqCountAsync(CancellationToken cancellationToken = default)
343343
{
344-
return GetValueAsync<IDictionary<uint, ulong>>(IscCodes.isc_info_read_seq_count, cancellationToken);
344+
return GetValueAsync<IDictionary<short, ulong>>(IscCodes.isc_info_read_seq_count, cancellationToken);
345345
}
346346

347347
/// <summary>
348348
/// Returns the number of database updates of the affected tables since the database was last attached.
349349
/// </summary>
350350
/// <returns>Dictionary with the number of updates, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
351-
public IDictionary<uint, ulong> GetUpdateCount()
351+
public IDictionary<short, ulong> GetUpdateCount()
352352
{
353-
return GetValue<IDictionary<uint, ulong>>(IscCodes.isc_info_update_count);
353+
return GetValue<IDictionary<short, ulong>>(IscCodes.isc_info_update_count);
354354
}
355355
/// <summary>
356356
/// Returns the number of database updates of the affected tables since the database was last attached.
357357
/// </summary>
358358
/// <returns>Dictionary with the number of updates, with table id (field RDB$RELATION_ID of the system table RDB$RELATIONS) as key.</returns>
359-
public Task<IDictionary<uint, ulong>> GetUpdateCountAsync(CancellationToken cancellationToken = default)
359+
public Task<IDictionary<short, ulong>> GetUpdateCountAsync(CancellationToken cancellationToken = default)
360360
{
361-
return GetValueAsync<IDictionary<uint, ulong>>(IscCodes.isc_info_update_count, cancellationToken);
361+
return GetValueAsync<IDictionary<short, ulong>>(IscCodes.isc_info_update_count, cancellationToken);
362362
}
363363

364364
public int GetDatabaseSizeInPages()

0 commit comments

Comments
 (0)