File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Orm/Xtensive.Orm.PostgreSql/Sql.Drivers.PostgreSql/v8_0 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -720,11 +720,11 @@ protected virtual void ReadColumnData(DbDataReader dataReader, ExtractionContext
720720 var columnName = dataReader [ "attname" ] . ToString ( ) ;
721721 if ( tableMap . TryGetValue ( columnOwnerId , out var table ) ) {
722722 var col = table . CreateColumn ( columnName ) ;
723- if ( tableColumns . TryGetValue ( columnId , out var column ) ) {
724- tableColumns . Add ( columnId , new Dictionary < long , TableColumn > ( ) ) ;
723+ if ( tableColumns . TryGetValue ( columnOwnerId , out var columns ) ) {
724+ columns . Add ( columnId , col ) ;
725725 }
726726 else {
727- column . Add ( columnId , col ) ;
727+ tableColumns . Add ( columnOwnerId , new Dictionary < long , TableColumn > ( ) { { columnId , col } } ) ;
728728 }
729729
730730 var columnTypeName = dataReader [ "typname" ] . ToString ( ) ;
You can’t perform that action at this time.
0 commit comments