We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d6c9c commit 3d71035Copy full SHA for 3d71035
src/backend/utils/adt/jsonb_typanalyze.c
@@ -189,12 +189,11 @@ typedef struct JsonAnalyzeContext
189
* JsonPathMatch
190
* Determine when two JSON paths (list of JsonPathEntry) match.
191
*
192
+ * Returned int instead of bool, because it is an implementation of
193
+ * HashCompareFunc.
194
+ *
195
* XXX Sould be JsonPathEntryMatch as it deals with JsonPathEntry nodes
196
* not whole paths, no?
- *
- * XXX Seems a bit silly to return int, when the return statement only
- * really returns bool (because of how it compares paths). It's not really
197
- * a comparator for sorting, for example.
198
*/
199
static int
200
JsonPathMatch(const void *key1, const void *key2, Size keysize)
0 commit comments