Small patch to compile clean against VC++ 5.0

From: "Julia A(dot)Case" <julie(at)hub(dot)org>
To: Byron Nikolaidis <byronn(at)insightdist(dot)com>, "Julia A(dot)Case" <julie(at)postgreSQL(dot)org>, pgsql-interfaces <pgsql-interfaces(at)postgreSQL(dot)org>, "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>, pgsql-questions(at)postgreSQL(dot)org
Subject: Small patch to compile clean against VC++ 5.0
Date: 1998-04-15 21:07:27
Message-ID: 19980415210727.17671@MageNet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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. ]

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Byron Nikolaidis 1998-04-15 21:41:45 ODBC Driver and Install script (PLEASE READ!)
Previous Message Julia A.Case 1998-04-15 20:34:10 Re: [INTERFACES] ODBC 6.3.2