[pmg-devel] applied: [PATCH pmg-api v2 2/2] statistics: fix update virusinfo
Stoiko Ivanov
s.ivanov at proxmox.com
Fri Jun 30 15:41:29 CEST 2023
applied this one to master and stable-7
Thanks for finding and fixing this so quickly!
On Fri, 30 Jun 2023 10:27:48 +0200
Dominik Csapak <d.csapak at proxmox.com> wrote:
> by moving the closing parenthesis to the correct place
>
> Fixes: 9972a7c ("postgresql compat: cast result from EXTRACT to INTEGER")
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> changes from v1:
> * remove the wrongly set parenthesis
> src/PMG/Statistic.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/PMG/Statistic.pm b/src/PMG/Statistic.pm
> index 950dbc2..ef4f5ba 100644
> --- a/src/PMG/Statistic.pm
> +++ b/src/PMG/Statistic.pm
> @@ -342,7 +342,7 @@ sub update_stats_virusinfo {
> my $sql = '';
>
> push @values, "Count = Count + $ref->{count}" if $ref->{count};
> - push @values, "MTime = EXTRACT(EPOCH FROM now()::INTEGER)";
> + push @values, "MTime = EXTRACT(EPOCH FROM now())::INTEGER";
>
> if (scalar (@values)) {
> $sql .= "UPDATE VirusInfo SET ";
More information about the pmg-devel
mailing list