pg.ddx.io pgsql-odbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
ODBC driver settings for BLOBs 2+ messages / 1 participants [nested] [flat]
* ODBC driver settings for BLOBs @ 2003-03-21 16:36 Andreas Pflug <Andreas.Pflug@web.de> 2003-03-21 21:41 ` Re: ODBC driver settings for BLOBs Andreas Pflug <Andreas.Pflug@web.de> 0 siblings, 1 reply; 2+ messages in thread From: Andreas Pflug @ 2003-03-21 16:36 UTC (permalink / raw) To: pgsql-odbc 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: ODBC driver settings for BLOBs 2003-03-21 16:36 ODBC driver settings for BLOBs Andreas Pflug <Andreas.Pflug@web.de> @ 2003-03-21 21:41 ` Andreas Pflug <Andreas.Pflug@web.de> 0 siblings, 0 replies; 2+ messages in thread From: Andreas Pflug @ 2003-03-21 21:41 UTC (permalink / raw) To: pgsql-odbc Unfortunately, the settings I mentioned will lead to corrupted data for other datatypes. I got CREATE DOMAIN T_OBJECTID numeric(12,5) The value 10.00001 is returned as 10.00000 if that "BLOB limit" is set to 3. This means to me that at the moment I can select whether my BLOBs work or the other datatypes I'm using. Any suggestion? ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-03-21 21:41 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2003-03-21 16:36 ODBC driver settings for BLOBs Andreas Pflug <Andreas.Pflug@web.de> 2003-03-21 21:41 ` Andreas Pflug <Andreas.Pflug@web.de>
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