File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Providers/FreeSql.Provider.MySql Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments