X-Original-To: pgsql-odbc@postgresql.org Received: from smtp.web.de (smtp02.web.de [217.72.192.151]) by postgresql.org (Postfix) with ESMTP id C0674475AFF for ; Fri, 21 Mar 2003 11:35:57 -0500 (EST) Received: from p5081816a.dip0.t-ipconnect.de ([80.129.129.106] helo=web.de) by smtp.web.de with asmtp (TLSv1:RC4-MD5:128) (WEB.DE(Exim) 4.97 #53) id 18wPUw-0002W8-00 for pgsql-odbc@postgresql.org; Fri, 21 Mar 2003 17:36:02 +0100 Message-ID: <3E7B3F7A.5040109@web.de> Date: Fri, 21 Mar 2003 17:36:10 +0100 From: Andreas Pflug User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: ODBC driver settings for BLOBs Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200303/45 X-Sequence-Number: 2764 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