@@ -1771,7 +1771,7 @@ public override IEnumerator GetEnumerator()
17711771 /// </summary>
17721772 /// <returns></returns>
17731773 public ReadOnlyCollection < NpgsqlDbColumn > GetColumnSchema ( )
1774- => GetColumnSchema ( async: false ) . GetAwaiter ( ) . GetResult ( ) ;
1774+ => GetColumnSchema < NpgsqlDbColumn > ( async: false ) . GetAwaiter ( ) . GetResult ( ) ;
17751775
17761776 ReadOnlyCollection < DbColumn > IDbColumnSchemaGenerator . GetColumnSchema ( )
17771777 {
@@ -1788,14 +1788,14 @@ ReadOnlyCollection<DbColumn> IDbColumnSchemaGenerator.GetColumnSchema()
17881788 /// Asynchronously returns schema information for the columns in the current resultset.
17891789 /// </summary>
17901790 /// <returns></returns>
1791- public new Task < ReadOnlyCollection < NpgsqlDbColumn > > GetColumnSchemaAsync ( CancellationToken cancellationToken = default )
1792- => GetColumnSchema ( async: true , cancellationToken ) ;
1791+ public override Task < ReadOnlyCollection < DbColumn > > GetColumnSchemaAsync ( CancellationToken cancellationToken = default )
1792+ => GetColumnSchema < DbColumn > ( async: true , cancellationToken ) ;
17931793
1794- Task < ReadOnlyCollection < NpgsqlDbColumn > > GetColumnSchema ( bool async , CancellationToken cancellationToken = default )
1794+ Task < ReadOnlyCollection < T > > GetColumnSchema < T > ( bool async , CancellationToken cancellationToken = default ) where T : DbColumn
17951795 => RowDescription == null || ColumnCount == 0
1796- ? Task . FromResult ( new List < NpgsqlDbColumn > ( ) . AsReadOnly ( ) )
1796+ ? Task . FromResult ( new List < T > ( ) . AsReadOnly ( ) )
17971797 : new DbColumnSchemaGenerator ( _connection ! , RowDescription , _behavior . HasFlag ( CommandBehavior . KeyInfo ) )
1798- . GetColumnSchema ( async , cancellationToken) ;
1798+ . GetColumnSchema < T > ( async , cancellationToken) ;
17991799
18001800 #endregion
18011801
@@ -1853,7 +1853,7 @@ Task<ReadOnlyCollection<NpgsqlDbColumn>> GetColumnSchema(bool async, Cancellatio
18531853 table . Columns . Add ( "ProviderSpecificDataType" , typeof ( Type ) ) ;
18541854 table . Columns . Add ( "DataTypeName" , typeof ( string ) ) ;
18551855
1856- foreach ( var column in await GetColumnSchema ( async , cancellationToken ) . ConfigureAwait( false) )
1856+ foreach ( var column in await GetColumnSchema < NpgsqlDbColumn > ( async , cancellationToken ) . ConfigureAwait( false) )
18571857 {
18581858 var row = table . NewRow ( ) ;
18591859
0 commit comments