Skip to content

Commit 4713f30

Browse files
authored
Merge pull request #280 from MCKanpolat/master
GetStatistics sql command fix
2 parents d572b57 + e7b5c89 commit 4713f30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Hangfire.PostgreSql/PostgreSqlMonitoringApi.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -292,20 +292,20 @@ SELECT COUNT(*)
292292
FROM ""{_storage.Options.SchemaName}"".""server"";
293293
294294
SELECT SUM(""value"") FROM
295-
(SELECT SUM(""value"") value
295+
(SELECT SUM(""value"") AS value
296296
FROM ""{_storage.Options.SchemaName}"".""counter""
297297
WHERE ""key"" = 'stats:succeeded'
298298
UNION ALL
299-
SELECT SUM(""value"") value
299+
SELECT SUM(""value"") AS value
300300
FROM ""{_storage.Options.SchemaName}"".""aggregatedcounter""
301301
WHERE ""key"" = 'stats:succeeded') c;
302302
303303
SELECT SUM(""value"") FROM
304-
(SELECT SUM(""value"") value
304+
(SELECT SUM(""value"") AS value
305305
FROM ""{_storage.Options.SchemaName}"".""counter""
306306
WHERE ""key"" = 'stats:deleted'
307307
UNION ALL
308-
SELECT SUM(""value"") value
308+
SELECT SUM(""value"") AS value
309309
FROM ""{_storage.Options.SchemaName}"".""aggregatedcounter""
310310
WHERE ""key"" = 'stats:deleted') c;
311311

0 commit comments

Comments
 (0)