git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 896cd26) | patch
Prevent CRLF conversion of inputs in json_parser test module
Tue, 9 Jul 2024 21:29:48 +0000 (17:29 -0400)
Tue, 9 Jul 2024 21:29:48 +0000 (17:29 -0400)
commit f7bd0a381de12a5c309f3c19d8c966b77e87cff3
Prevent CRLF conversion of inputs in json_parser test module

Do this by opening the file in PG_BINARY_R mode. This prevents us from
getting wrong byte count from stat().

Per complaint from Andres Freund

Discussion: https://postgr.es/m/20240707052030.r77hbdkid3mwksop@awork3.anarazel.de

Backpatch to rlease 17 where this code was introduced
src/test/modules/test_json_parser/test_json_parser_incremental.c diff | blob | blame | history
src/test/modules/test_json_parser/test_json_parser_perf.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /