Skip site navigation (1) Skip section navigation (2)

BUG #2267: Accessing large objects via ODBC

From: "Gerhard Lutz" <gerhard(dot)lutz(at)mbtech-group(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2267: Accessing large objects via ODBC
Date: 2006-02-16 14:06:52
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      2267
Logged by:          Gerhard Lutz
Email address:      gerhard(dot)lutz(at)mbtech-group(dot)com
PostgreSQL version: 8.1.3
Operating system:   Windows XP SP2
Description:        Accessing large objects via ODBC

I want to upgrade my PostgreSQL server from 8.0.4 to 8.1.3.
My C++ application connects to the database via ODBC (ODBC driver:
PostgreSQL Unicode).

I've installed 8.1.3 with "large objects (lo)" and created a table

CREATE testdata
(id integer not null,
buffer lo);

So far this worked.
Now if I want to get the 'buffer' column

::SQLExecDirect(m_hStmt, (unsigned char*)"SELECT buffer FROM testdata WHERE
id=6", SQL_NTS);
::SQLGetData(m_hStmt, nCol, SQL_C_BINARY, pBuffer, nPacketSize, 

I get the error message

"Received an unsupported type from Postgres. (14)"

In PostgreSQL 8.0.4 this worked without a problem.
In 8.1.3 I can also see in pgAdmin III that there are no functions lo_in(lo)
and lo_out(lo) in the tree.

Perhaps this is an installation bug in 8.1.3?

pgsql-bugs by date

Next:From: Marko KreenDate: 2006-02-16 14:17:21
Subject: Re: BUG #2260: PGCrypto Memory Problem
Previous:From: Gerhard LutzDate: 2006-02-16 13:50:29
Subject: BUG #2266: SQL_ATTR_CONNECTION_DEAD always returns SQL_CD_TRUE

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group