mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
Tidy up after incremental JSON parser patch
Remove junk left over from non-vpath builds. Try to remedy gettext error on some platforms.
This commit is contained in:
parent
1b00fe30a6
commit
88620824c2
@ -2112,9 +2112,9 @@ json_errdetail(JsonParseErrorType error, JsonLexContext *lex)
|
|||||||
break;
|
break;
|
||||||
case JSON_INVALID_LEXER_TYPE:
|
case JSON_INVALID_LEXER_TYPE:
|
||||||
if (lex->incremental)
|
if (lex->incremental)
|
||||||
return (_("Recursive descent parser cannot use incremental lexer"));
|
return _("Recursive descent parser cannot use incremental lexer");
|
||||||
else
|
else
|
||||||
return (_("Incremental parser requires incremental lexer"));
|
return _("Incremental parser requires incremental lexer");
|
||||||
case JSON_NESTING_TOO_DEEP:
|
case JSON_NESTING_TOO_DEEP:
|
||||||
return (_("JSON nested too deep, maximum permitted depth is 6400"));
|
return (_("JSON nested too deep, maximum permitted depth is 6400"));
|
||||||
case JSON_ESCAPING_INVALID:
|
case JSON_ESCAPING_INVALID:
|
||||||
|
3
src/test/modules/test_json_parser/.gitignore
vendored
Normal file
3
src/test/modules/test_json_parser/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
tmp_check
|
||||||
|
test_json_parser_perf
|
||||||
|
test_json_parser_incremental
|
@ -17,6 +17,8 @@ include $(top_builddir)/src/Makefile.global
|
|||||||
include $(top_srcdir)/contrib/contrib-global.mk
|
include $(top_srcdir)/contrib/contrib-global.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
all: test_json_parser_incremental$(X) test_json_parser_perf$(X)
|
all: test_json_parser_incremental$(X) test_json_parser_perf$(X)
|
||||||
|
|
||||||
%.o: $(top_srcdir)/$(subdir)/%.c
|
%.o: $(top_srcdir)/$(subdir)/%.c
|
||||||
@ -34,3 +36,6 @@ speed-check: test_json_parser_perf$(X)
|
|||||||
time ./test_json_parser_perf 10000 $(top_srcdir)/$(subdir)/tiny.json
|
time ./test_json_parser_perf 10000 $(top_srcdir)/$(subdir)/tiny.json
|
||||||
@echo Incremental parser:
|
@echo Incremental parser:
|
||||||
time ./test_json_parser_perf -i 10000 $(top_srcdir)/$(subdir)/tiny.json
|
time ./test_json_parser_perf -i 10000 $(top_srcdir)/$(subdir)/tiny.json
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf test_json_parser_perf test_json_parser_incremental tmp_check $(OBJS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user