Skip to content

Commit 53fe7a8

Browse files
committed
Merge branch 'master' of https://github.com/dotnetcore/FreeSql
2 parents b93f963 + 76a396a commit 53fe7a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Providers/FreeSql.Provider.MySql/MySqlDbFirst.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,14 @@ from information_schema.statistics a
367367
if (!indexColumns.TryGetValue(table_id, out loc10))
368368
indexColumns.Add(table_id, loc10 = new Dictionary<string, DbIndexInfo>(StringComparer.CurrentCultureIgnoreCase));
369369
if (!loc10.TryGetValue(index_id, out loc11))
370-
loc10.Add(index_id, loc11 = new DbIndexInfo());
370+
loc10.Add(index_id, loc11 = new DbIndexInfo { Name = index_id });
371371
loc11.Columns.Add(new DbIndexColumnInfo { Column = loc9, IsDesc = is_desc });
372372
if (is_unique && !is_primary_key)
373373
{
374374
if (!uniqueColumns.TryGetValue(table_id, out loc10))
375375
uniqueColumns.Add(table_id, loc10 = new Dictionary<string, DbIndexInfo>(StringComparer.CurrentCultureIgnoreCase));
376376
if (!loc10.TryGetValue(index_id, out loc11))
377-
loc10.Add(index_id, loc11 = new DbIndexInfo());
377+
loc10.Add(index_id, loc11 = new DbIndexInfo { Name = index_id });
378378
loc11.Columns.Add(new DbIndexColumnInfo { Column = loc9, IsDesc = is_desc });
379379
}
380380
}

0 commit comments

Comments
 (0)