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

i cannot use odbc with postgresql in linux

From: Michal Seliga <michal(dot)seliga(at)visicom(dot)sk>
To: pgsql-odbc(at)postgresql(dot)org
Subject: i cannot use odbc with postgresql in linux
Date: 2010-08-10 07:25:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
i am using ubuntu 10.04, with self compiled unixodbc 2.2.11 from ubuntu repository (its build such way that SQL WCHARS are 2 bytes long). unixodbc is then installed to /opt/unixodbc

then i install postgresql from repository and pgsqlodbc-08.03.0200 from repository and build it with ./configure --with-unixodbc=/opt/unixodbc ; make; cp .libs/ /opt/unixodbc/lib

then i create .odbc.ini entry to test database which works using psql and I do
export LD_LIBRARY_PATH=/opt/unixodbc/lib
/opt/unixodbc/bin/isql -v psqltest

result is:
[IM005][unixODBC][Driver Manager]Driver's SQLAllocHandle on
[ISQL]ERROR: Could not SQLConnect

i found many messages here about this problem, but no solution yet. any idea what i can do?
i tried to use newev official version (08.04.200), cvs version from, but result was always the same

i did the same things with mysql and their odbc driver and it works such way. i can use it both with isql and other programs. so i guess that how i build driver is not problem...or am i doing something
really wrong?


i tried to post this message using google groups but it seems it didn't got through. if it would be posted twice i am sorry...

pgsql-odbc by date

Next:From: Dennis EvansDate: 2010-08-10 19:16:34
Subject: SQLPrepare
Previous:From: Tom LaneDate: 2010-08-09 19:03:14
Subject: Re: Moving data from SQL Server to Postgres via VFP ODBC Driver

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