PG-439: Remove warning of comparison of unsigned enum expression. (#257)

This commit is contained in:
Ibrar Ahmed
2022-06-14 18:04:43 +05:00
committed by GitHub
parent 55ba2deee1
commit 1ff4891191

View File

@@ -1938,7 +1938,7 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo,
nulls[i++] = true; nulls[i++] = true;
/* cmd_type at column number 11 */ /* cmd_type at column number 11 */
if (tmp.info.cmd_type < 0) if (tmp.info.cmd_type == CMD_NOTHING)
nulls[i++] = true; nulls[i++] = true;
else else
values[i++] = Int64GetDatumFast(tmp.info.cmd_type); values[i++] = Int64GetDatumFast(tmp.info.cmd_type);