From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Nick Gorham <nick(at)lurcher(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>, PostgreSQL odbc list <pgsql-odbc(at)postgreSQL(dot)org> |
Subject: | Re: Re: unixODBC again :-( |
Date: | 2001-01-24 18:15:12 |
Message-ID: | Pine.LNX.4.30.0101241908170.1469-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-odbc |
Bruce Momjian writes:
> > 1. Add options to use unixODBC in the configure.in file, the mainly consists of finding the root of the unixODBC install prefix, and adding
> > -I /unixODBC/path/include and -L /unixODBC/path/lib to the driver build
--with-includes, --with-libraries
> > 2. Change the way the driver gets config info, to be the same as when built under windows. link with -lodbcinst and it provides
> > SQLGetPrivateProfileString. the code that calls this works as long as the correct define is set.
I don't understand this. The driver gets the config info just fine; why
add another way?
> > 3. Stop calling ODBC functions in the driver, this is simple but messy, the problem being the call (say) in SQLAllocStmt that calls
> > SQLAllocHandle in the driver, ends up calling the SQLAllocHandle in the driver manager.
This is fixed using magic linker options on ELF platforms. I don't recall
how the patch tried to address this, but a better solution is probably
necessary.
> > There are a couple of other changes I have made, that you may want
> to add, I added the code to allow encrypted passwords (taken from the
> pg > lib), as crypt is avaiable on unix.
Why not.
> Add the option to detect a
> server name of localhost, and open the unix domain socket,
I don't think so. localhost is a valid host name.
> in fact try
> two > places, to handle the debian build where the location is
> different.
We have a general approach to non-standard socket names now.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/
From | Date | Subject | |
---|---|---|---|
Next Message | Alfred Perlstein | 2001-01-24 18:33:42 | Re: Libpq async issues |
Previous Message | Tom Lane | 2001-01-24 18:08:10 | Re: LEFT JOIN in pg_dumpall is a bug |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-01-24 18:47:49 | Re: [INTERFACES] ODBC gives pq_recvbuf: unexpected EOF on client connection |
Previous Message | Dave Page | 2001-01-24 17:03:50 | RE: [PATCHES] ODBC Patch for OJs/Large Querys & Rows |