postgresql/contrib/ltree
Tom Lane 58640f37d9 Remove useless character-length checks in contrib/ltree.
The t_iseq() macro does not need to be guarded by a character
length check (at least when the comparison value is an ASCII
character, as its documentation requires).  Some portions of
contrib/ltree hadn't read that memo, so simplify them.

The last change in gettoken_query,

-                else if (charlen == 1 && !t_iseq(state->buf, ' '))
+                else if (!t_iseq(state->buf, ' '))

looks like it's actually a bug fix: I doubt that the intention
was to silently ignore multibyte characters as if they were
whitespace.  I'm not tempted to back-patch though, because this
will have the effect of tightening what is allowed in ltxtquery
strings.

Discussion: https://postgr.es/m/2548310.1664999615@sss.pgh.pa.us
2022-10-06 11:18:32 -04:00
..
data Add ltree data type to contrib, from Teodor Sigaev and Oleg Bartunov. 2002-07-30 16:40:34 +00:00
expected Clean up parsing of ltree and lquery some more. 2020-04-01 19:44:17 -04:00
sql Clean up parsing of ltree and lquery some more. 2020-04-01 19:44:17 -04:00
_ltree_gist.c Split up guc.c for better build speed and ease of maintenance. 2022-09-13 11:11:45 -04:00
_ltree_op.c Split up guc.c for better build speed and ease of maintenance. 2022-09-13 11:11:45 -04:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
crc32.c Adjust MSVC build scripts to parse Makefiles for defines 2021-07-29 12:01:23 +12:00
crc32.h Add support for binary I/O of ltree, lquery, and ltxtquery types. 2020-04-01 17:31:29 -04:00
lquery_op.c Remove useless character-length checks in contrib/ltree. 2022-10-06 11:18:32 -04:00
ltree_gist.c Split up guc.c for better build speed and ease of maintenance. 2022-09-13 11:11:45 -04:00
ltree_io.c Clean up parsing of ltree and lquery some more. 2020-04-01 19:44:17 -04:00
ltree_op.c Clean up more code using "(expr) ? true : false" 2021-10-11 09:36:42 +09:00
ltree--1.0--1.1.sql Make contrib modules' installation scripts more secure. 2020-08-10 10:44:42 -04:00
ltree--1.1--1.2.sql Add support for binary I/O of ltree, lquery, and ltxtquery types. 2020-04-01 17:31:29 -04:00
ltree--1.1.sql Update extensions with GIN/GIST support for parallel query. 2016-06-14 13:34:37 -04:00
ltree.control Implement operator class parameters 2020-03-30 19:17:23 +03:00
ltree.h Remove useless character-length checks in contrib/ltree. 2022-10-06 11:18:32 -04:00
ltreetest.sql Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
ltxtquery_io.c Remove useless character-length checks in contrib/ltree. 2022-10-06 11:18:32 -04:00
ltxtquery_op.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
Makefile Adjust MSVC build scripts to parse Makefiles for defines 2021-07-29 12:01:23 +12:00
meson.build meson: Add windows resource files 2022-10-05 09:56:05 -07:00