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