@@ -83,7 +83,7 @@ public async ValueTask<DataTable> GetSchemaAsync(IOBehavior ioBehavior, string c
83
83
84
84
private Task FillMetaDataCollectionsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
85
85
{
86
- if ( restrictionValues is not null )
86
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
87
87
throw new ArgumentException ( "restrictionValues is not supported for schema 'MetaDataCollections'." , nameof ( restrictionValues ) ) ;
88
88
89
89
dataTable . TableName = tableName ;
@@ -129,7 +129,7 @@ private Task FillMetaDataCollectionsAsync(IOBehavior ioBehavior, DataTable dataT
129
129
130
130
private async Task FillCharacterSetsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
131
131
{
132
- if ( restrictionValues is not null )
132
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
133
133
throw new ArgumentException ( "restrictionValues is not supported for schema 'CharacterSets'." , nameof ( restrictionValues ) ) ;
134
134
135
135
dataTable . TableName = tableName ;
@@ -146,7 +146,7 @@ private async Task FillCharacterSetsAsync(IOBehavior ioBehavior, DataTable dataT
146
146
147
147
private async Task FillCollationsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
148
148
{
149
- if ( restrictionValues is not null )
149
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
150
150
throw new ArgumentException ( "restrictionValues is not supported for schema 'Collations'." , nameof ( restrictionValues ) ) ;
151
151
152
152
dataTable . TableName = tableName ;
@@ -165,7 +165,7 @@ private async Task FillCollationsAsync(IOBehavior ioBehavior, DataTable dataTabl
165
165
166
166
private async Task FillCollationCharacterSetApplicabilityAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
167
167
{
168
- if ( restrictionValues is not null )
168
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
169
169
throw new ArgumentException ( "restrictionValues is not supported for schema 'CollationCharacterSetApplicability'." , nameof ( restrictionValues ) ) ;
170
170
171
171
dataTable . TableName = tableName ;
@@ -227,7 +227,7 @@ private async Task FillColumnsAsync(IOBehavior ioBehavior, DataTable dataTable,
227
227
228
228
private async Task FillDatabasesAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
229
229
{
230
- if ( restrictionValues is not null )
230
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
231
231
throw new ArgumentException ( "restrictionValues is not supported for schema 'Databases'." , nameof ( restrictionValues ) ) ;
232
232
233
233
dataTable . TableName = tableName ;
@@ -245,7 +245,7 @@ private async Task FillDatabasesAsync(IOBehavior ioBehavior, DataTable dataTable
245
245
246
246
private Task FillDataSourceInformationAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
247
247
{
248
- if ( restrictionValues is not null )
248
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
249
249
throw new ArgumentException ( "restrictionValues is not supported for schema 'DataSourceInformation'." , nameof ( restrictionValues ) ) ;
250
250
251
251
dataTable . TableName = tableName ;
@@ -277,7 +277,7 @@ private Task FillDataSourceInformationAsync(IOBehavior ioBehavior, DataTable dat
277
277
278
278
private Task FillDataTypesAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
279
279
{
280
- if ( restrictionValues is not null )
280
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
281
281
throw new ArgumentException ( "restrictionValues is not supported for schema 'DataTypes'." , nameof ( restrictionValues ) ) ;
282
282
283
283
dataTable . TableName = tableName ;
@@ -315,7 +315,7 @@ private Task FillDataTypesAsync(IOBehavior ioBehavior, DataTable dataTable, stri
315
315
316
316
private async Task FillEnginesAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
317
317
{
318
- if ( restrictionValues is not null )
318
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
319
319
throw new ArgumentException ( "restrictionValues is not supported for schema 'Engines'." , nameof ( restrictionValues ) ) ;
320
320
321
321
dataTable . TableName = tableName ;
@@ -334,7 +334,7 @@ private async Task FillEnginesAsync(IOBehavior ioBehavior, DataTable dataTable,
334
334
335
335
private async Task FillKeyColumnUsageAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
336
336
{
337
- if ( restrictionValues is not null )
337
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
338
338
throw new ArgumentException ( "restrictionValues is not supported for schema 'KeyColumnUsage'." , nameof ( restrictionValues ) ) ;
339
339
340
340
dataTable . TableName = tableName ;
@@ -359,7 +359,7 @@ private async Task FillKeyColumnUsageAsync(IOBehavior ioBehavior, DataTable data
359
359
360
360
private async Task FillKeyWordsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
361
361
{
362
- if ( restrictionValues is not null )
362
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
363
363
throw new ArgumentException ( "restrictionValues is not supported for schema 'KeyWords'." , nameof ( restrictionValues ) ) ;
364
364
365
365
dataTable . TableName = tableName ;
@@ -374,7 +374,7 @@ private async Task FillKeyWordsAsync(IOBehavior ioBehavior, DataTable dataTable,
374
374
375
375
private async Task FillParametersAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
376
376
{
377
- if ( restrictionValues is not null )
377
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
378
378
throw new ArgumentException ( "restrictionValues is not supported for schema 'Parameters'." , nameof ( restrictionValues ) ) ;
379
379
380
380
dataTable . TableName = tableName ;
@@ -403,7 +403,7 @@ private async Task FillParametersAsync(IOBehavior ioBehavior, DataTable dataTabl
403
403
404
404
private async Task FillPartitionsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
405
405
{
406
- if ( restrictionValues is not null )
406
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
407
407
throw new ArgumentException ( "restrictionValues is not supported for schema 'Partitions'." , nameof ( restrictionValues ) ) ;
408
408
409
409
dataTable . TableName = tableName ;
@@ -441,7 +441,7 @@ private async Task FillPartitionsAsync(IOBehavior ioBehavior, DataTable dataTabl
441
441
442
442
private async Task FillPluginsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
443
443
{
444
- if ( restrictionValues is not null )
444
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
445
445
throw new ArgumentException ( "restrictionValues is not supported for schema 'Plugins'." , nameof ( restrictionValues ) ) ;
446
446
447
447
dataTable . TableName = tableName ;
@@ -465,7 +465,7 @@ private async Task FillPluginsAsync(IOBehavior ioBehavior, DataTable dataTable,
465
465
466
466
private async Task FillProceduresAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
467
467
{
468
- if ( restrictionValues is not null )
468
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
469
469
throw new ArgumentException ( "restrictionValues is not supported for schema 'Procedures'." , nameof ( restrictionValues ) ) ;
470
470
471
471
dataTable . TableName = tableName ;
@@ -498,7 +498,7 @@ private async Task FillProceduresAsync(IOBehavior ioBehavior, DataTable dataTabl
498
498
499
499
private async Task FillProcessListAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
500
500
{
501
- if ( restrictionValues is not null )
501
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
502
502
throw new ArgumentException ( "restrictionValues is not supported for schema 'ProcessList'." , nameof ( restrictionValues ) ) ;
503
503
504
504
dataTable . TableName = tableName ;
@@ -519,7 +519,7 @@ private async Task FillProcessListAsync(IOBehavior ioBehavior, DataTable dataTab
519
519
520
520
private async Task FillProfilingAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
521
521
{
522
- if ( restrictionValues is not null )
522
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
523
523
throw new ArgumentException ( "restrictionValues is not supported for schema 'Profiling'." , nameof ( restrictionValues ) ) ;
524
524
525
525
dataTable . TableName = tableName ;
@@ -550,7 +550,7 @@ private async Task FillProfilingAsync(IOBehavior ioBehavior, DataTable dataTable
550
550
551
551
private async Task FillReferentialConstraintsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
552
552
{
553
- if ( restrictionValues is not null )
553
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
554
554
throw new ArgumentException ( "restrictionValues is not supported for schema 'ReferentialConstraints'." , nameof ( restrictionValues ) ) ;
555
555
556
556
dataTable . TableName = tableName ;
@@ -574,7 +574,7 @@ private async Task FillReferentialConstraintsAsync(IOBehavior ioBehavior, DataTa
574
574
575
575
private Task FillReservedWordsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
576
576
{
577
- if ( restrictionValues is not null )
577
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
578
578
throw new ArgumentException ( "restrictionValues is not supported for schema 'ReservedWords'." , nameof ( restrictionValues ) ) ;
579
579
580
580
dataTable . TableName = tableName ;
@@ -590,7 +590,7 @@ private Task FillReservedWordsAsync(IOBehavior ioBehavior, DataTable dataTable,
590
590
591
591
private async Task FillResourceGroupsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
592
592
{
593
- if ( restrictionValues is not null )
593
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
594
594
throw new ArgumentException ( "restrictionValues is not supported for schema 'ResourceGroups'." , nameof ( restrictionValues ) ) ;
595
595
596
596
dataTable . TableName = tableName ;
@@ -608,7 +608,7 @@ private async Task FillResourceGroupsAsync(IOBehavior ioBehavior, DataTable data
608
608
609
609
private Task FillRestrictionsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
610
610
{
611
- if ( restrictionValues is not null )
611
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
612
612
throw new ArgumentException ( "restrictionValues is not supported for schema 'Restrictions'." , nameof ( restrictionValues ) ) ;
613
613
614
614
dataTable . TableName = tableName ;
@@ -634,7 +634,7 @@ private Task FillRestrictionsAsync(IOBehavior ioBehavior, DataTable dataTable, s
634
634
635
635
private async Task FillSchemaPrivilegesAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
636
636
{
637
- if ( restrictionValues is not null )
637
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
638
638
throw new ArgumentException ( "restrictionValues is not supported for schema 'SchemaPrivileges'." , nameof ( restrictionValues ) ) ;
639
639
640
640
dataTable . TableName = tableName ;
@@ -699,7 +699,7 @@ private async Task FillTablesAsync(IOBehavior ioBehavior, DataTable dataTable, s
699
699
700
700
private async Task FillTableConstraintsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
701
701
{
702
- if ( restrictionValues is not null )
702
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
703
703
throw new ArgumentException ( "restrictionValues is not supported for schema 'TableConstraints'." , nameof ( restrictionValues ) ) ;
704
704
705
705
dataTable . TableName = tableName ;
@@ -718,7 +718,7 @@ private async Task FillTableConstraintsAsync(IOBehavior ioBehavior, DataTable da
718
718
719
719
private async Task FillTablePrivilegesAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
720
720
{
721
- if ( restrictionValues is not null )
721
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
722
722
throw new ArgumentException ( "restrictionValues is not supported for schema 'TablePrivileges'." , nameof ( restrictionValues ) ) ;
723
723
724
724
dataTable . TableName = tableName ;
@@ -737,7 +737,7 @@ private async Task FillTablePrivilegesAsync(IOBehavior ioBehavior, DataTable dat
737
737
738
738
private async Task FillTableSpacesAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
739
739
{
740
- if ( restrictionValues is not null )
740
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
741
741
throw new ArgumentException ( "restrictionValues is not supported for schema 'TableSpaces'." , nameof ( restrictionValues ) ) ;
742
742
743
743
dataTable . TableName = tableName ;
@@ -759,7 +759,7 @@ private async Task FillTableSpacesAsync(IOBehavior ioBehavior, DataTable dataTab
759
759
760
760
private async Task FillTriggersAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
761
761
{
762
- if ( restrictionValues is not null )
762
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
763
763
throw new ArgumentException ( "restrictionValues is not supported for schema 'Triggers'." , nameof ( restrictionValues ) ) ;
764
764
765
765
dataTable . TableName = tableName ;
@@ -794,7 +794,7 @@ private async Task FillTriggersAsync(IOBehavior ioBehavior, DataTable dataTable,
794
794
795
795
private async Task FillUserPrivilegesAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
796
796
{
797
- if ( restrictionValues is not null )
797
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
798
798
throw new ArgumentException ( "restrictionValues is not supported for schema 'UserPrivileges'." , nameof ( restrictionValues ) ) ;
799
799
800
800
dataTable . TableName = tableName ;
@@ -811,7 +811,7 @@ private async Task FillUserPrivilegesAsync(IOBehavior ioBehavior, DataTable data
811
811
812
812
private async Task FillViewsAsync ( IOBehavior ioBehavior , DataTable dataTable , string tableName , string ? [ ] ? restrictionValues , CancellationToken cancellationToken )
813
813
{
814
- if ( restrictionValues is not null )
814
+ if ( restrictionValues is not null && restrictionValues . Length > 0 )
815
815
throw new ArgumentException ( "restrictionValues is not supported for schema 'Views'." , nameof ( restrictionValues ) ) ;
816
816
817
817
dataTable . TableName = tableName ;
0 commit comments