Skip to content

Commit 187ab1c

Browse files
committed
moved "trim" to SQL
1 parent 9470f22 commit 187ab1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FirebirdSql.Data.FirebirdClient.Tests/FbDatabaseInfoTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ IDictionary<short, ulong> GetAffectedTables(IDictionary<short, ulong> statisticI
170170
async Task<IDictionary<string, short>> GetTableNameList()
171171
{
172172
IDictionary<string, short> result = new Dictionary<string, short>();
173-
await using (var command = new FbCommand("select R.RDB$RELATION_ID, R.RDB$RELATION_NAME from RDB$RELATIONS R WHERE RDB$SYSTEM_FLAG = 0", Connection))
173+
await using (var command = new FbCommand("select R.RDB$RELATION_ID, TRIM(R.RDB$RELATION_NAME) from RDB$RELATIONS R WHERE RDB$SYSTEM_FLAG = 0", Connection))
174174
{
175175
await using (var reader = await command.ExecuteReaderAsync())
176176
{
177177
while (await reader.ReadAsync())
178178
{
179-
result.Add(reader.GetString(1).Trim(), reader.GetInt16(0));
179+
result.Add(reader.GetString(1), reader.GetInt16(0));
180180
}
181181
}
182182
}

0 commit comments

Comments
 (0)