Fix bug with VARCHAR(5) parameter and UseServerSidePrepare=0
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 24 Apr 2013 15:35:54 +0000 (18:35 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 24 Apr 2013 15:41:12 +0000 (18:41 +0300)
commit75e2b81732d1683323b0e15a7622d14e2ca71122
tree67bd8eef7cd614789ba2e7cd3088f07522f127c4
parenta5e2002a3ad3fc3a30d4aa89ff356c40a988267c
Fix bug with VARCHAR(5) parameter and UseServerSidePrepare=0

If you passed a VARCHAR parameter with column_size 5 to SQLPrepare, and you
had UseServerSideprepare=0 and BoolsAsChar=1, the code describes the
parameters before running the query, so that it can check if the parameter
is a boolean. That produced a bogus extra empty result set to the caller in
subsequent SQLExecute().

This fixes the two regression test failures.

Patch by Hiroshi Inoue, with minor copy-editing by me.
columninfo.c
columninfo.h
docs/release.html
execute.c
pgtypes.c
qresult.c
qresult.h
statement.c