use map for table columns
This commit is contained in:
@@ -18,9 +18,8 @@ sub debug;
|
||||
sub get_columns($) {
|
||||
my $config = shift;
|
||||
|
||||
my $dbh = db::connect($config);
|
||||
my $cols = db::get_columns( $dbh, 'calcms_studio_timeslot_schedule' );
|
||||
return { map { $_ => undef } @$cols };
|
||||
my $dbh = db::connect($config);
|
||||
return db::get_columns_hash( $dbh, 'calcms_studio_timeslot_schedule' );
|
||||
}
|
||||
|
||||
#map schedule id to id
|
||||
|
||||
Reference in New Issue
Block a user