Small patch to compile clean against VC++ 5.0 - Mailing list pgsql-interfaces

From Julia A.Case
Subject Small patch to compile clean against VC++ 5.0
Date
Msg-id 19980415210727.17671@MageNet.com
Whole thread Raw
In response to ODBC Driver and Install script (PLEASE READ!)  (Byron Nikolaidis <byronn@insightdist.com>)
List pgsql-interfaces
diff -uwd old/connection.c new/connection.c
--- old/connection.c    Wed Apr 15 16:42:00 1998
+++ new/connection.c    Wed Apr 15 21:56:01 1998
@@ -1150,7 +1150,7 @@
         return;
     }

-    result = SQLGetData(hstmt, 1, SQL_C_SLONG, &self->lobj_type, sizeof(self->lobj_type), NULL);
+    result = SQLGetData(hstmt, 1, SQL_C_LONG, &self->lobj_type, sizeof(self->lobj_type), NULL);
     if((result != SQL_SUCCESS) && (result != SQL_SUCCESS_WITH_INFO)) {
         SQLFreeStmt(hstmt, SQL_DROP);
         return;
diff -uwd old/environ.h new/environ.h
--- old/environ.h    Fri Mar 27 11:06:06 1998
+++ new/environ.h    Wed Apr 15 21:56:02 1998
@@ -13,6 +13,7 @@
 #include "psqlodbc.h"
 #include <windows.h>
 #include <sql.h>
+#include <sqlext.h>

 #define ENV_ALLOC_ERROR 1

diff -uwd old/misc.h new/misc.h
--- old/misc.h    Wed Apr 15 12:29:22 1998
+++ new/misc.h    Wed Apr 15 22:00:26 1998
@@ -26,7 +26,7 @@
     'CommLog' flag in the ODBCINST.INI portion of the registry (see above),
     which is manipulated on the setup/connection dialog boxes.
 */
-#define Q_LOG
+// #define Q_LOG


 #ifdef MY_LOG
diff -uwd old/options.c new/options.c
--- old/options.c    Tue Mar 24 13:36:30 1998
+++ new/options.c    Wed Apr 15 21:56:02 1998
@@ -16,6 +16,7 @@
 #include "psqlodbc.h"
 #include <windows.h>
 #include <sql.h>
+#include <sqlext.h>
 #include "environ.h"
 #include "connection.h"
 #include "statement.h"


--
[  Julia Anne Case  ] [        Ships are safe inside the harbor,       ]
[Programmer at large] [      but is that what ships are really for.    ]
[   Admining Linux  ] [           To thine own self be true.           ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]

pgsql-interfaces by date:

Previous
From: Scott Tomer x6214 Austin
Date:
Subject: Re: [INTERFACES] ODBC Driver and Install script (PLEASE READ!)
Next
From: Bruce Momjian
Date:
Subject: Re: [QUESTIONS] ODBC Driver and Install script (PLEASE READ!)