Correction of the return values of the DatabaseInfo methods for determining the insert, read and delete operations#1183
Correction of the return values of the DatabaseInfo methods for determining the insert, read and delete operations#1183DevM900 wants to merge 22 commits intoFirebirdSQL:masterfrom
Conversation
…ort Firebird Server 2.0.
…per table since the last connection to the database
…per table since the last connection to the database. fixes FirebirdSQL#1157
…into DatabaseInfo
| IDictionary<short, ulong> readSeqCount = dbInfo.GetReadSeqCount(); | ||
| IDictionary<short, ulong> readIdxCount = dbInfo.GetReadIdxCount(); | ||
|
|
||
| var fbCommand = new FbCommand("SELECT MAX(INT_FIELD) FROM TEST", Connection); |
There was a problem hiding this comment.
Does not look like it's here.
| IDictionary<short, ulong> readSeqCount = dbInfo.GetReadSeqCount(); | ||
| IDictionary<short, ulong> readIdxCount = dbInfo.GetReadIdxCount(); | ||
|
|
||
| var fbCommand = new FbCommand("INSERT INTO TEST (INT_FIELD) VALUES (900)", Connection); |
There was a problem hiding this comment.
Does not look like it's here.
| IDictionary<string, short> tableNameList = GetTableNameList(); | ||
| short tableIdTest = tableNameList["TEST"]; | ||
|
|
||
| var fbCommand = new FbCommand("INSERT INTO TEST (INT_FIELD) VALUES (900)", Connection); |
There was a problem hiding this comment.
Does not look like it's here.
src/FirebirdSql.Data.FirebirdClient.Tests/FbDatabaseInfoTests.cs
Outdated
Show resolved
Hide resolved
src/FirebirdSql.Data.FirebirdClient.Tests/FbDatabaseInfoTests.cs
Outdated
Show resolved
Hide resolved
| if (counter > 0) | ||
| result.Add(keyValuePair.Key, counter); | ||
| } | ||
| else |
There was a problem hiding this comment.
Add }/{ for consistency sake.
There was a problem hiding this comment.
Does not look like it's here.
src/FirebirdSql.Data.FirebirdClient.Tests/FbDatabaseInfoTests.cs
Outdated
Show resolved
Hide resolved
|
@cincuranet it appears that all requested changes have been addressed by @DevM900 (but weren't marked as "resolved"). Could you please review and proceed with the merge? |
src/FirebirdSql.Data.FirebirdClient.Tests/FbDatabaseInfoTests.cs
Outdated
Show resolved
Hide resolved
src/FirebirdSql.Data.FirebirdClient.Tests/FbDatabaseInfoTests.cs
Outdated
Show resolved
Hide resolved
src/FirebirdSql.Data.FirebirdClient.Tests/FbDatabaseInfoTests.cs
Outdated
Show resolved
Hide resolved
|
Not really. Some are still not addressed and going through it again I found some more. |
| IDictionary<short, ulong> readSeqCount = dbInfo.GetReadSeqCount(); | ||
| IDictionary<short, ulong> readIdxCount = dbInfo.GetReadIdxCount(); | ||
|
|
||
| var fbCommand = new FbCommand("SELECT MAX(INT_FIELD) FROM TEST", Connection); |
There was a problem hiding this comment.
Does not look like it's here.
| IDictionary<short, ulong> readSeqCount = dbInfo.GetReadSeqCount(); | ||
| IDictionary<short, ulong> readIdxCount = dbInfo.GetReadIdxCount(); | ||
|
|
||
| var fbCommand = new FbCommand("INSERT INTO TEST (INT_FIELD) VALUES (900)", Connection); |
There was a problem hiding this comment.
Does not look like it's here.
| IDictionary<string, short> tableNameList = GetTableNameList(); | ||
| short tableIdTest = tableNameList["TEST"]; | ||
|
|
||
| var fbCommand = new FbCommand("INSERT INTO TEST (INT_FIELD) VALUES (900)", Connection); |
There was a problem hiding this comment.
Does not look like it's here.
|
|
||
| private IDictionary<string, short> GetTableNameList() | ||
| { | ||
| IDictionary<string, short> result = new Dictionary<string, short>(); |
There was a problem hiding this comment.
Does not look like it's here.
| } | ||
|
|
||
| IDictionary<short, ulong> GetAffectedTables(IDictionary<short, ulong> statisticInfoBefore, IDictionary<short, ulong> statisticInfoAfter) | ||
| async Task<IDictionary<short, ulong>> GetAffectedTables(IDictionary<short, ulong> statisticInfoBefore, IDictionary<short, ulong> statisticInfoAfter) |
These changes make it possible to analyze the performance of queries.