X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=C4%2FSQLHelper.pm;h=21f5fa179b0799f05f3fe6f8cea79e1f80897d0e;hb=548845eceec03a727c1923d7fdd720b06ac7567f;hp=e1cb5d0a9aa35e8787d95e867c69077184d2a87f;hpb=b1121b11b52f14b3356ab3cbc505b4fd9a450626;p=koha_fer diff --git a/C4/SQLHelper.pm b/C4/SQLHelper.pm index e1cb5d0a9a..21f5fa179b 100644 --- a/C4/SQLHelper.pm +++ b/C4/SQLHelper.pm @@ -46,7 +46,7 @@ eval { BEGIN { # set the version for version checking - $VERSION = 0.5; + $VERSION = 3.07.00.049; require Exporter; @ISA = qw(Exporter); @EXPORT_OK=qw( @@ -248,7 +248,7 @@ Get the Primary Key field names of the table =cut -sub GetPrimaryKeys($) { +sub GetPrimaryKeys { my $tablename=shift; my $hash_columns=_get_columns($tablename); return grep { $hash_columns->{$_}->{'Key'} =~/PRI/i} keys %$hash_columns; @@ -284,7 +284,7 @@ With =cut -sub _get_columns($) { +sub _get_columns { my ($tablename) = @_; unless ( exists( $hashref->{$tablename} ) ) { my $dbh = C4::Context->dbh; @@ -314,7 +314,7 @@ If it is not for research purpose, filter primary keys =cut -sub _filter_columns ($$;$) { +sub _filter_columns { my ($tablename,$research, $filtercolumns)=@_; if ($filtercolumns){ return (@$filtercolumns);