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

pull/254/merge
Ibrar Ahmed 2022-06-14 18:04:43 +05:00 committed by GitHub
parent 55ba2deee1
commit 1ff4891191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);