pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wojciech Kromer <krom@softomat.com.pl>
To: pgsql-interfaces@postgresql.org
Subject: Psql ODBC and 'lo' type in PostgreSQL 6.4.x (error inserting large obj...)
Date: Mon, 29 Mar 1999 18:02:56 +0200
Message-ID: <36FFA430.CB7DAF36@softomat.com.pl> (raw)

I found where the problem is.


In the file  "convert.c" from PsqlODBC  dll source code i found the
line:
...
    sprintf(param_string, "%d", lobj_oid);
...
for PostrgeSQL 6.3 it's OK, but for 6.4 shoul be
...
    sprintf(param_string, "%d::lo", lobj_oid);
...
or something like this.
My sugestion to autors of PsqlODBC is to add an option to the ODBC
driver.

Could anyone compile PsqlODBC and test it?
I don't have any Microsoft Copmiler Stuff...,
... or anyone wrote a makefile for mingw

If You have soullution please send me one

PS. I don't like to go back to 6.3.....


--
%%
Kazda cywilizacja musi dojsc do momentu, w ktorym wymysli PIWO!
%%
Wojciech Kromer mailto:krom@softomat.com.pl





Message-ID: <36FFA430.CB7DAF36@softomat.com.pl>
Permalink:  ../36FFA430.CB7DAF36@softomat.com.pl/
Also on:    postgresql.org/message-id/36FFA430.CB7DAF36@softomat.com.pl

 · 

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: krom@softomat.com.pl
  Subject: Re: Psql ODBC and 'lo' type in PostgreSQL 6.4.x (error inserting large obj...)
  In-Reply-To: <36FFA430.CB7DAF36@softomat.com.pl>

* 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