From 1ff4891191bc408c09435d69dbf03486081b9309 Mon Sep 17 00:00:00 2001 From: Ibrar Ahmed Date: Tue, 14 Jun 2022 18:04:43 +0500 Subject: [PATCH] PG-439: Remove warning of comparison of unsigned enum expression. (#257) --- pg_stat_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_stat_monitor.c b/pg_stat_monitor.c index 9f3c5e3..41e5fe5 100644 --- a/pg_stat_monitor.c +++ b/pg_stat_monitor.c @@ -1938,7 +1938,7 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo, nulls[i++] = true; /* cmd_type at column number 11 */ - if (tmp.info.cmd_type < 0) + if (tmp.info.cmd_type == CMD_NOTHING) nulls[i++] = true; else values[i++] = Int64GetDatumFast(tmp.info.cmd_type);