Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0hmY-0004jn-Ll for pgsql-odbc@arkaria.postgresql.org; Thu, 31 Jan 2013 00:13:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U0hmX-00026D-RX for pgsql-odbc@arkaria.postgresql.org; Thu, 31 Jan 2013 00:13:33 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U0hmX-000260-BL for pgsql-odbc@postgresql.org; Thu, 31 Jan 2013 00:13:33 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U0hmT-0008OP-Jy for pgsql-odbc@postgresql.org; Thu, 31 Jan 2013 00:13:33 +0000 Received: (qmail 32702 invoked by uid 512); 31 Jan 2013 00:13:24 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.0.33.218) by sd2.tpf-fw-c.co.jp with SMTP; 31 Jan 2013 00:13:24 -0000 Message-ID: <5109B6D2.1050309@tpf.co.jp> Date: Thu, 31 Jan 2013 09:12:02 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Son Nguyen CC: "pgsql-odbc@postgresql.org" Subject: Re: bug in sqlGetInfo on Linux i386 platform References: <1359483995.96753.YahooMailNeo@web163902.mail.gq1.yahoo.com> In-Reply-To: <1359483995.96753.YahooMailNeo@web163902.mail.gq1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi Son, (2013/01/30 3:26), Son Nguyen wrote: > Hi, > sqlGetInfo on SQL_DBMS_VER returns different string when I have the > protocol setting in the odbc.ini file > 1) Here is the odbc.ini file that has entry Protocol which is set to > 7.2, or 6.4. The effective values for *Protocol* are 6.2, 6.3, 6.4 or 7.4 and the default is 7.4. Setting the protocol to values other than 7.4 has little meaning for recent versions of PostgreSQL servers. In case of old protocols the SQL_DBMS_VER string is simply the string which 'select version();' returns. regards, Hiroshi Inoue > The SQM_DBMS_VER string contains some other info. > [GOSALES1_PG_92] > Driver=/usr/pgsql-9.1/lib/psqlodbc.so > Description=Sample PostgreSQL DSN > Servername=vottdts26 > Database=gosales1 > Username=gosales1 > Password=gosales1 > Servertype=postgres > Port=5432 > Protocol = 7.2 > drv-mob:/uda/dev/nguyens/postgres> ./a.out > SQL_DBMS_NAME = PostgreSQL, StringLengthPtr = 10 > SQL_DBMS_VER = PostgreSQL 9.2.1, compiled by Visual C++ build 1600, > 64-bit, StringLengthPtr = 59 > SQL_DRIVER_NAME = psqlodbcw.so, StringLengthPtr = 12 > SQL_DRIVER_VER = 09.00.0310, StringLengthPtr = 10 > 2) Here is the odbc.ini that Protocol entry is commented out. The > SQM_DBMS_VER string does not contain other info. > [GOSALES1_PG_92] > Driver=/usr/pgsql-9.1/lib/psqlodbc.so > Description=Sample PostgreSQL DSN > Servername=vottdts26 > Database=gosales1 > Username=gosales1 > Password=gosales1 > Servertype=postgres > Port=5432 > ;Protocol = 7.2 > drv-mob:/uda/dev/nguyens/postgres> ./a.out > SQL_DBMS_NAME = PostgreSQL, StringLengthPtr = 10 > SQL_DBMS_VER = 9.2.1, StringLengthPtr = 5 > SQL_DRIVER_NAME = psqlodbcw.so, StringLengthPtr = 12 > SQL_DRIVER_VER = 09.00.0310, StringLengthPtr = 10 > Thanks > Son Nguyen -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc