Fix incorrect format placeholders for Oid
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 30 Jan 2024 08:11:41 +0000 (09:11 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 30 Jan 2024 08:11:41 +0000 (09:11 +0100)
src/backend/utils/adt/jsonpath_exec.c

index 22f598cd3592c596d5bbb39e29b5da920c6751d3..573b6ce2ba72d086816b7d77571980ea3bd79b9f 100644 (file)
@@ -2413,7 +2413,7 @@ executeDateTimeMethod(JsonPathExecContext *cxt, JsonPathItem *jsp,
                                                                                                        value);
                                                break;
                                        default:
-                                               elog(ERROR, "type with oid %d not supported", typid);
+                                               elog(ERROR, "type with oid %u not supported", typid);
                                }
 
                                typid = DATEOID;
@@ -2445,7 +2445,7 @@ executeDateTimeMethod(JsonPathExecContext *cxt, JsonPathItem *jsp,
                                                                                                        value);
                                                break;
                                        default:
-                                               elog(ERROR, "type with oid %d not supported", typid);
+                                               elog(ERROR, "type with oid %u not supported", typid);
                                }
 
                                /* Force the user-given time precision, if any */
@@ -2490,7 +2490,7 @@ executeDateTimeMethod(JsonPathExecContext *cxt, JsonPathItem *jsp,
                                                                                                        value);
                                                break;
                                        default:
-                                               elog(ERROR, "type with oid %d not supported", typid);
+                                               elog(ERROR, "type with oid %u not supported", typid);
                                }
 
                                /* Force the user-given time precision, if any */
@@ -2535,7 +2535,7 @@ executeDateTimeMethod(JsonPathExecContext *cxt, JsonPathItem *jsp,
                                                                                                        value);
                                                break;
                                        default:
-                                               elog(ERROR, "type with oid %d not supported", typid);
+                                               elog(ERROR, "type with oid %u not supported", typid);
                                }
 
                                /* Force the user-given time precision, if any */
@@ -2587,7 +2587,7 @@ executeDateTimeMethod(JsonPathExecContext *cxt, JsonPathItem *jsp,
                                        case TIMESTAMPTZOID:    /* Nothing to do for TIMESTAMPTZ */
                                                break;
                                        default:
-                                               elog(ERROR, "type with oid %d not supported", typid);
+                                               elog(ERROR, "type with oid %u not supported", typid);
                                }
 
                                /* Force the user-given time precision, if any */