Fix argument value NULL check.
authorMarko Kreen <markokr@gmail.com>
Fri, 11 Sep 2009 14:26:32 +0000 (14:26 +0000)
committerMarko Kreen <markokr@gmail.com>
Fri, 11 Sep 2009 14:26:32 +0000 (14:26 +0000)
commit89e3a1ec4a978ab9008305f98b43bd06b7993f75
tree428568e8ee0d0aea0bde1d5a39a03afe35276019
parentb515c6b5fafdff43e61017bc8494b4979f45d89c
Fix argument value NULL check.

Incoming NULL value could cause crash in function containing SELECT
with different argument order.  Due to thinko, NULL check was done
with query arg index, instead of function arg index.

Reported by João Matos
expected/plproxy_select.out
sql/plproxy_select.sql
src/execute.c