X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1232ED1B4E8 for ; Mon, 8 Sep 2003 16:37:23 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 78979-05 for ; Mon, 8 Sep 2003 13:36:51 -0300 (ADT) Received: from russel.il.mainsoft.com (unknown [213.31.213.10]) by svr1.postgresql.org (Postfix) with ESMTP id C7CA3D1B513 for ; Mon, 8 Sep 2003 13:36:49 -0300 (ADT) Received: from rafiexp1 (yuvalp-xp1.il.mainsoft.com [172.17.1.28] (may be forged)) by russel.il.mainsoft.com (8.9.3/8.9.3) with ESMTP id TAA09759 for ; Mon, 8 Sep 2003 19:34:51 +0300 From: "Rafi Einstein" To: Subject: PostgreSQL ODBC modification request Date: Mon, 8 Sep 2003 19:36:33 +0300 Organization: Mainsoft Message-ID: <001501c37627$5d90aaf0$1c0111ac@il.mainsoft.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01C37640.82DDE2F0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.6 tagged_above=0.0 required=5.0 tests=HTML_80_90, HTML_FONT_COLOR_BLUE, UPPERCASE_25_50 X-Spam-Level: * X-Archive-Number: 200309/35 X-Sequence-Number: 3233 This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C37640.82DDE2F0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, I am using PostgreSQL ODBC driver library on Linux, with unixODBC manager version 2.2.5. Here are some modifications to a header file that allows the driver to work properly with unixODBC: In dlg_specific.h: /* ODBC initialization files */ #ifndef WIN32 #ifdef WITH_UNIXODBC #define ODBC_INI "ODBC.INI" #define ODBCINST_INI "ODBCINST.INI" #else #define ODBC_INI ".odbc.ini" #define ODBCINST_INI "odbcinst.ini" #endif /* WITH_UNIXODBC */ #else /* WIN32 */ #define ODBC_INI "ODBC.INI" #define ODBCINST_INI "ODBCINST.INI" #endif /* WIN32 */ [ The "odbc.ini" name is hardcoded in unixODBC.] Best regards, Rafi Einstein ------=_NextPart_000_0016_01C37640.82DDE2F0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I am using PostgreSQL ODBC driver library on Linu= x, with unixODBC manager version 2.2.5.=

Here are some modifications to a h= eader file that allows the driver to work properly with unix= ODBC:

 

In dlg_specific.h= :

 

/* ODBC initialization files */

#ifnd= ef WIN32

 

#ifde= f WITH_UNIXODBC

#define ODBC_INI        "ODBC.INI"

#define ODBCINST_INI    "ODBCINST.INI&quo= t;

#else

#define ODBC_INI        &= nbsp;         &= nbsp;           &= nbsp;           &= nbsp;           &= nbsp;           &= nbsp;   ".odbc.ini"

#define ODBCINST_INI                       &= nbsp;           &= nbsp;           &= nbsp;   "odbcinst.ini"

#endi= f /* WITH_UNIXODBC */

 

#else /* WIN32 */

#define ODBC_INI        &= nbsp;         &= nbsp;           &= nbsp;           &= nbsp;           &= nbsp;           &= nbsp;   "ODBC.INI"

#define ODBCINST_INI                       &= nbsp;           &= nbsp;           &= nbsp;   "ODBCINST.INI"

#endi= f /* WIN32 */

 

[ The "odbc.ini" name is = hardcoded in unixODBC.]

 

Best regards,

Rafi Einstein

 

------=_NextPart_000_0016_01C37640.82DDE2F0--