pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ales Pour <pour@princip.cz>
To: Brad Pepers <brad@linuxcanada.com>
To: pgsql-interfaces@postgreSQL.org
Subject: type for binary data
Date: Fri, 07 Jan 2000 14:27:21 +0100
Message-ID: <3875E9B9.1865771D@princip.cz> (raw)
References: <19991204031143.17192.qmail@web1102.mail.yahoo.com>
	<3848EBEB.910DE62A@linuxcanada.com>

Hello everyone,
I cannot find a suitable type for a chunk of binary data (about 1400
bytes) in PostgreSQL 65.3. database which I access via ODBC (in MySQL
I'm usinng BLOB type and in MS Access LONGBINARY type). I'm using
SQL_C_BINARY binding for reading the data and
SQL_C_BINARY/SQL_LONGVARBINARY binding for updating it. Status after
updating corresponds to the size of the data (1400) stored, but I read
it immediately after it says that only 5 bytes read (I hope I'm
interpreting the value of status well). I tried to change
SQL_LONGVARBINARY to SQL_LONGVARCHAR but still I do not get back what I
store.
What type should I use, please? Or is it something with ODBC? I'm using
unixODBC-1.8.3 (a patch that recently appeared on this list concerning
BLOBs and ODBC has been applied int this release and I believe the
Postgres driver is pretty up-to-date).
Thank you a lot.

Regards,
    Ales Pour




Message-ID: <3875E9B9.1865771D@princip.cz>
Permalink:  ../3875E9B9.1865771D@princip.cz/
Also on:    postgresql.org/message-id/3875E9B9.1865771D@princip.cz

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: pour@princip.cz, brad@linuxcanada.com
  Subject: Re: type for binary data
  In-Reply-To: <3875E9B9.1865771D@princip.cz>

* 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