File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1751,7 +1751,7 @@ pg_stat_get_archiver(PG_FUNCTION_ARGS)
17511751
17521752 /* Fill values and NULLs */
17531753 values [0 ] = Int64GetDatum (archiver_stats -> archived_count );
1754- if (archiver_stats -> last_archived_wal == 0 )
1754+ if (* ( archiver_stats -> last_archived_wal ) == '\0' )
17551755 nulls [1 ] = true;
17561756 else
17571757 values [1 ] = CStringGetTextDatum (archiver_stats -> last_archived_wal );
@@ -1762,7 +1762,7 @@ pg_stat_get_archiver(PG_FUNCTION_ARGS)
17621762 values [2 ] = TimestampTzGetDatum (archiver_stats -> last_archived_timestamp );
17631763
17641764 values [3 ] = Int64GetDatum (archiver_stats -> failed_count );
1765- if (archiver_stats -> last_failed_wal == 0 )
1765+ if (* ( archiver_stats -> last_failed_wal ) == '\0' )
17661766 nulls [4 ] = true;
17671767 else
17681768 values [4 ] = CStringGetTextDatum (archiver_stats -> last_failed_wal );
You can’t perform that action at this time.
0 commit comments