Let the server decide if SQL_LONGVARBINARY means a bytea or large object.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 21 Dec 2015 12:52:38 +0000 (14:52 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 21 Dec 2015 12:52:38 +0000 (14:52 +0200)
commita22712527a6057eb8adaa9dbadecf092eb27febc
tree44655223b783e890851f880ea558d68cb0ed6a06
parent93b0bd907c68c1b094fb28bed750e2d0b81feaff
Let the server decide if SQL_LONGVARBINARY means a bytea or large object.

This reverts the behaviour of SQL_LONGVARBINARY parameters to the way it was
before commit 1ccd04c70b8037b268eefcaae09ce131c8c33b59. We can't reliably
guess in the driver whether the parameters should be sent to the server
as 'bytea' or as a large object, so send it as 'unknown' and let the server
decide.

Diagnosis and original patch by Hiroshi Inoue, I only added the comment.
pgtypes.c