From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: Andre Felipe Machado <andremachado@techforce.com.br>
Cc: pgsql-odbc@postgresql.org
Subject: Re: large objects and pg 7.3.x with OpenOffice.org
Date: Thu, 21 Aug 2003 19:36:19 +0900
Message-ID: <3F44A0A3.8363A1@tpf.co.jp> (raw)
References: <003201c3672a$31069c30$3d283ddb@PbgX>
<200308201413.44280.andremachado@techforce.com.br>
Andre Felipe Machado wrote:
>
> I guess that openoffice escapes the binary file, in order to to
> pass it by value into a SQL statement, as it is recommended for
> bytea and for mysql BLOBs. But pg odbc driver expects raw binary
> file, not escaped one, for longvarbinary. And postgresql/contrib/lo
> also does expect a file name, not a parsed by value.
The problem I see in the log you sent is
[ODBC][7485][SQLBindParameter.c][186]
Entry:
Statement = 0x81e39b0
Param Number = 2
Param Type = 1
C Type = -2 SQL_C_BINARY
SQL Type = -2 SQL_C_BINARY
OpenOffice is binding SQL_BINARY(SQL_C_BINARY seems a unixODBC's
bug) SQL Type parameter not an SQL_LONGVARBINARY one. Unfortunately
I don't understand the reason.
Though I don't love the *bytea* type, you can turn on
the *bytea as LO* DSN option. *bytea* is only for not
so large objects.
regards,
Hiroshi Inoue
http://www.geocities.jp/inocchichichi/psqlodbc/
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: Inoue@tpf.co.jp, andremachado@techforce.com.br
Subject: Re: large objects and pg 7.3.x with OpenOffice.org
In-Reply-To: <3F44A0A3.8363A1@tpf.co.jp>
References: <003201c3672a$31069c30$3d283ddb@PbgX> <200308201413.44280.andremachado@techforce.com.br> <3F44A0A3.8363A1@tpf.co.jp>
* 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