File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -354,21 +354,16 @@ static bool
354
354
repack_one_database (const char * orderby , char * errbuf , size_t errsize )
355
355
{
356
356
bool ret = false;
357
- PGresult * res = NULL ;
357
+ PGresult * res = NULL ;
358
358
int i ;
359
359
int num ;
360
360
StringInfoData sql ;
361
361
SimpleStringListCell * cell ;
362
362
const char * * params = NULL ;
363
363
size_t num_params = simple_string_list_size (table_list );
364
364
365
- /* We need to be able to support at least two params, or more
366
- * if we have multiple --tables specified.
367
- */
368
- if (num_params && num_params > 2 )
365
+ if (num_params )
369
366
params = pgut_malloc (num_params * sizeof (char * ));
370
- else
371
- params = pgut_malloc (2 * sizeof (char * ));
372
367
373
368
initStringInfo (& sql );
374
369
You can’t perform that action at this time.
0 commit comments