bug in sqlGetInfo on Linux i386 platform

From: Son Nguyen <son102yh(at)yahoo(dot)ca>
To: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>
Subject: bug in sqlGetInfo on Linux i386 platform
Date: 2013-01-29 18:26:35
Message-ID: 1359483995.96753.YahooMailNeo@web163902.mail.gq1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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 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

Attachment Content-Type Size
getDatabaseInfo.c text/plain 5.0 KB

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Inoue, Hiroshi 2013-01-31 00:12:02 Re: bug in sqlGetInfo on Linux i386 platform
Previous Message Barry Bell 2013-01-25 14:06:36 ODBC blank date.time setting