pgsql: Fix reading of BitString nodes

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Fix reading of BitString nodes
Дата
Msg-id E1ocDeJ-001rN3-0V@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix reading of BitString nodes

The node tokenizer went out of its way to store BitString node values
without the leading 'b'.  But everything else in the system stores the
leading 'b'.  This would break if a BitString node is
read-printed-read.

Also, the node tokenizer didn't know that BitString node tokens could
also start with 'x'.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/4159834.1657405226@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2cb1a5a8d4aeb63da2d6a2d22169f05c60bb5828

Modified Files
--------------
src/backend/nodes/read.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Remove uses of register due to incompatibility with C++17 and up
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Message style improvements