Skip to Content.
Sympa Menu

freetds - Patch to ODBC - driver information fields

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Alex Hornby <alex AT anvil.co.uk>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Patch to ODBC - driver information fields
  • Date: 01 Nov 2002 14:41:36 +0000


Hi,

The following small patch to SQLGetInfo allows my libodbc++ using
programs to connect and run queries.

Could someone apply this to CVS?

Regards,
Alex.

Index: odbc.c
===================================================================
RCS file: /cvsroot/freetds/freetds/src/odbc/odbc.c,v
retrieving revision 1.77
diff -u -r1.77 odbc.c
--- odbc.c 27 Oct 2002 19:59:17 -0000 1.77
+++ odbc.c 1 Nov 2002 14:40:35 -0000
@@ -2212,6 +2212,15 @@

switch (fInfoType)
{
+ case SQL_DBMS_NAME:
+ p = "SQL Server";
+ break;
+ case SQL_DBMS_VER:
+ p = "unknown version";
+ break;
+ case SQL_DRIVER_VER:
+ p = VERSION;
+ break;
case SQL_DRIVER_NAME: /* ODBC 2.0 */
p = "libtdsodbc.so";
break;







Archive powered by MHonArc 2.6.24.

Top of Page