mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-03 08:00:21 +08:00
17ca067995
Fix lquery parsing to handle repeated flag characters correctly, and to enforce the max label length correctly in some cases where it did not before, and to detect empty labels in some cases where it did not before. In a more cosmetic vein, use a switch rather than if-then chains to handle the different states, and avoid unnecessary checks on charlen when looking for ASCII characters, and factor out multiple copies of the label length checking code. Tom Lane and Dmitry Belyavsky Discussion: https://postgr.es/m/CADqLbzLVkBuPX0812o+z=c3i6honszsZZ6VQOSKR3VPbB56P3w@mail.gmail.com |
||
---|---|---|
.. | ||
data | ||
expected | ||
sql | ||
_ltree_gist.c | ||
_ltree_op.c | ||
.gitignore | ||
crc32.c | ||
crc32.h | ||
lquery_op.c | ||
ltree_gist.c | ||
ltree_io.c | ||
ltree_op.c | ||
ltree--1.0--1.1.sql | ||
ltree--1.1--1.2.sql | ||
ltree--1.1.sql | ||
ltree.control | ||
ltree.h | ||
ltreetest.sql | ||
ltxtquery_io.c | ||
ltxtquery_op.c | ||
Makefile |