Initialize parameter type of NULL parameters correctly.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 25 Feb 2015 09:17:44 +0000 (11:17 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 25 Feb 2015 09:17:44 +0000 (11:17 +0200)
commit825c29ba07d77a7a11a5824c0b7279abb56b651f
tree462483994e2581735be64acfde6c4df04b3e4cdc
parentbd9eef878c85ea4247c7b4167bfd82091092785b
Initialize parameter type of NULL parameters correctly.

When building the arrays of parameter types, formats, etc. for sending to
the server with PQexecParams(), the parameter types for NULL parameters
were not set. This caused "cache lookup failed for type XXX" errors.

Add test case for SQLBindParameter with NULL params.
convert.c
test/expected/params.out
test/expected/params_1.out
test/src/params-test.c