]> granicus.if.org Git - postgresql/commitdiff
Minor jsonpath fixes.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Apr 2019 17:37:00 +0000 (13:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 17 Apr 2019 17:37:00 +0000 (13:37 -0400)
Restore missed "make clean" rule, fix misspelling.

John Naylor

Discussion: https://postgr.es/m/CACPNZCt5B8jDCCGQiFoSuqmg-za_NCy4QDioBTLaNRih9+-bXg@mail.gmail.com

src/backend/utils/adt/Makefile
src/backend/utils/adt/jsonpath_scan.l

index 4ef769749da194ce5adcd160f8955e79555638d0..580043233b3cbf7233344efdadb62b577e79bada 100644 (file)
@@ -36,11 +36,13 @@ OBJS = acl.o amutils.o arrayfuncs.o array_expanded.o array_selfuncs.o \
 jsonpath_scan.c: FLEXFLAGS = -CF -p -p
 jsonpath_scan.c: FLEX_NO_BACKUP=yes
 
-# Force these dependencies to be known even without dependency info built:
+# jsonpath_scan is compiled as part of jsonpath_gram
 jsonpath_gram.o: jsonpath_scan.c
 
 # jsonpath_gram.c and jsonpath_scan.c are in the distribution tarball,
 # so they are not cleaned here.
+clean distclean maintainer-clean:
+       rm -f lex.backup
 
 like.o: like.c like_match.c
 
index 12ef81b308326d9449bb363a646826a1cb3d3616..72bb5e3937b1e1e3c2e54a9ab0311a52a84ad8ae 100644 (file)
@@ -478,7 +478,7 @@ parsejsonpath(const char *str, int len)
        jsonpath_scanner_init(str, len);
 
        if (jsonpath_yyparse((void *) &parseresult) != 0)
-               jsonpath_yyerror(NULL, "bugus input");
+               jsonpath_yyerror(NULL, "bogus input"); /* shouldn't happen */
 
        jsonpath_scanner_finish();