Fix improper NULL handling in list partitioning code.

The previous logic was wrong when the value was NULL but there was
no partition for NULL.

Amit Langote, reviewed by Jeevan Ladhe

Discussion: 
http://postgr.es/m/d64f8498-70eb-3c88-b56d-c54fd3b05...@lab.ntt.co.jp

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7ecb7143589f38d679bb566311dfa9be1a650fd5

Modified Files
--------------
src/backend/catalog/partition.c      | 10 +++++++---
src/test/regress/expected/insert.out |  7 +++++++
src/test/regress/sql/insert.sql      |  6 ++++++
3 files changed, 20 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

Reply via email to