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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d35cd06) | patch
Limit max parameter number with MaxAllocSize
Tue, 2 Jul 2024 07:24:04 +0000 (09:24 +0200)
Tue, 2 Jul 2024 07:29:26 +0000 (09:29 +0200)
commit 9c2e660b07fc16bdd79c25047cce6cde2acb3f37
Limit max parameter number with MaxAllocSize

MaxAllocSize puts an upper bound on the largest possible parameter
number ($268435455). Use that limit instead of INT_MAX to report that
no parameters exist beyond that point instead of reporting an error
about the maximum allocation size being exceeded.

Author: Erik Wienhold <ewie@ewie.name>
Discussion: https://www.postgresql.org/message-id/flat/5d216d1c-91f6-4cbe-95e2-b4cbd930520c@ewie.name
src/backend/parser/parse_param.c diff | blob | blame | history
src/test/regress/expected/prepare.out diff | blob | blame | history
src/test/regress/sql/prepare.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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