Received: from gps.geoinvest.cz (root@[194.213.32.199]) by hub.org (8.9.3/8.9.3) with ESMTP id IAA35858 for ; Fri, 7 Jan 2000 08:26:37 -0500 (EST) (envelope-from pour@princip.cz) Received: from princip.cz (gateway.geoinvest.cz [194.213.201.242]) by gps.geoinvest.cz (8.9.1a/8.9.1) with ESMTP id OAA23317; Fri, 7 Jan 2000 14:26:23 +0100 Message-ID: <3875E9B9.1865771D@princip.cz> Date: Fri, 07 Jan 2000 14:27:21 +0100 From: Ales Pour X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: Brad Pepers , pgsql-interfaces@postgreSQL.org Subject: type for binary data References: <19991204031143.17192.qmail@web1102.mail.yahoo.com> <3848EBEB.910DE62A@linuxcanada.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit 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