From: Andreas Pflug <Andreas.Pflug@web.de>
To: pgsql-odbc@postgresql.org
Subject: ODBC driver settings for BLOBs
Date: Fri, 21 Mar 2003 17:36:10 +0100
Message-ID: <3E7B3F7A.5040109@web.de> (raw)
While inserting BLOBs into the database, I found that there are
dependencies on MaxVarcharSize, MaxLongVarcharSize and
UnknownAsLongVarchar ODBC settions. I need to set MaxVarcharSize or
MaxLongVarcharSize, dependent on UnknownAsLongVarchar, lower than the
smallest BLOB to be written to a lo column. In my case, the smallest
BLOB that will ever be written has 4 bytes, so 3 is the correct value
for me.
I went into the ODBC source, but couldn't determine if this would have
some other unwanted effects.
I now use MaxLongVarcharSize=3, MaxVarcharSize=254 (to keep Access
happy) and UnknownAsLongVarchar and hope the best.
I wonder if it really makes sense to deal with BLOBs different depending
on their size....
Regards,
Andreas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: Andreas.Pflug@web.de
Subject: Re: ODBC driver settings for BLOBs
In-Reply-To: <3E7B3F7A.5040109@web.de>
References: <3E7B3F7A.5040109@web.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox