@@ -67,8 +67,6 @@ public async ValueTask<DataTable> GetSchemaAsync(IOBehavior ioBehavior, string c
67
67
await FillTableConstraintsAsync ( ioBehavior , dataTable , "TableConstraints" , restrictionValues , cancellationToken ) . ConfigureAwait ( false ) ;
68
68
else if ( string . Equals ( collectionName , "TablePrivileges" , StringComparison . OrdinalIgnoreCase ) )
69
69
await FillTablePrivilegesAsync ( ioBehavior , dataTable , "TablePrivileges" , restrictionValues , cancellationToken ) . ConfigureAwait ( false ) ;
70
- else if ( string . Equals ( collectionName , "TableSpaces" , StringComparison . OrdinalIgnoreCase ) )
71
- await FillTableSpacesAsync ( ioBehavior , dataTable , "TableSpaces" , restrictionValues , cancellationToken ) . ConfigureAwait ( false ) ;
72
70
else if ( string . Equals ( collectionName , "Triggers" , StringComparison . OrdinalIgnoreCase ) )
73
71
await FillTriggersAsync ( ioBehavior , dataTable , "Triggers" , restrictionValues , cancellationToken ) . ConfigureAwait ( false ) ;
74
72
else if ( string . Equals ( collectionName , "UserPrivileges" , StringComparison . OrdinalIgnoreCase ) )
@@ -125,7 +123,6 @@ private Task FillMetaDataCollectionsAsync(IOBehavior ioBehavior, DataTable dataT
125
123
dataTable . Rows . Add ( "Tables" , 4 , 3 ) ;
126
124
dataTable . Rows . Add ( "TableConstraints" , 0 , 3 ) ;
127
125
dataTable . Rows . Add ( "TablePrivileges" , 0 , 0 ) ;
128
- dataTable . Rows . Add ( "TableSpaces" , 0 , 0 ) ;
129
126
dataTable . Rows . Add ( "Triggers" , 0 , 3 ) ;
130
127
dataTable . Rows . Add ( "UserPrivileges" , 0 , 0 ) ;
131
128
dataTable . Rows . Add ( "Views" , 0 , 3 ) ;
@@ -757,28 +754,6 @@ private async Task FillTablePrivilegesAsync(IOBehavior ioBehavior, DataTable dat
757
754
await FillDataTableAsync ( ioBehavior , dataTable , "TABLE_PRIVILEGES" , null , cancellationToken ) . ConfigureAwait ( false ) ;
758
755
}
759
756
760
- private async Task FillTableSpacesAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
761
- {
762
- if ( restrictionValues is not null && restrictionValues . Length > 0 )
763
- throw new ArgumentException ( "restrictionValues is not supported for schema 'TableSpaces'." , nameof ( restrictionValues ) ) ;
764
-
765
- dataTable . TableName = tableName ;
766
- dataTable . Columns . AddRange (
767
- [
768
- new ( "TABLESPACE_NAME" , typeof ( string ) ) ,
769
- new ( "ENGINE" , typeof ( string ) ) ,
770
- new ( "TABLESPACE_TYPE" , typeof ( string ) ) ,
771
- new ( "LOGFILE_GROUP_NAME" , typeof ( string ) ) ,
772
- new ( "EXTENT_SIZE" , typeof ( long ) ) ,
773
- new ( "AUTOEXTEND_SIZE" , typeof ( long ) ) ,
774
- new ( "MAXIMUM_SIZE" , typeof ( long ) ) ,
775
- new ( "NODEGROUP_ID" , typeof ( long ) ) ,
776
- new ( "TABLESPACE_COMMENT" , typeof ( string ) ) ,
777
- ] ) ;
778
-
779
- await FillDataTableAsync ( ioBehavior , dataTable , "TABLESPACES" , null , cancellationToken ) . ConfigureAwait ( false ) ;
780
- }
781
-
782
757
private async Task FillTriggersAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
783
758
{
784
759
if ( restrictionValues is not null && restrictionValues . Length > 0 )
0 commit comments