line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package oEdtk::Util;
|
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
827
|
use strict;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
4
|
1
|
|
|
1
|
|
7
|
use warnings;
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
161
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = 0.01;
|
7
|
|
|
|
|
|
|
our @ISA = qw(Exporter);
|
8
|
|
|
|
|
|
|
our @EXPORT_OK = qw(_uc_hash_keys);
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# Conversion de toutes les clefs d'un hash en majuscule, utile
|
11
|
|
|
|
|
|
|
# car PostgreSQL retourne les noms de colonnes en minuscule.
|
12
|
|
|
|
|
|
|
#
|
13
|
|
|
|
|
|
|
# XXX Cette fonction n'est plus utilisée maintenant qu'on set
|
14
|
|
|
|
|
|
|
# l'option 'FetchHashKeyName' à 'NAME_uc' dans DBAdmin.pm.
|
15
|
|
|
|
|
|
|
sub _uc_hash_keys {
|
16
|
0
|
|
|
0
|
|
|
my $hash = shift;
|
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
$hash->{uc $_} = delete $hash->{$_} for keys %$hash;
|
19
|
0
|
|
|
|
|
|
return $hash;
|
20
|
|
|
|
|
|
|
}
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1;
|