Get ODBC driver to work for iODBC

This commit is contained in:
whydoubt
2004-10-16 14:21:13 +00:00
parent 44fde416d4
commit 26cd3ee1ba
7 changed files with 39 additions and 26 deletions

View File

@@ -93,7 +93,7 @@ void FreeConnectParams (ConnectParams* params)
}
#if !HAVE_SQLGETPRIVATEPROFILESTRING
int LoadDSN (
static int LoadDSN (
const gchar* iniFileName, const gchar* dsnName, GHashTable* table)
{
FILE* stream;
@@ -500,6 +500,7 @@ static gboolean cleanup (gpointer key, gpointer value, gpointer user_data)
#define ODBCINST_PROMPTTYPE_COMBOBOX 3
#define ODBCINST_PROMPTTYPE_FILENAME 4
#define ODBCINST_PROMPTTYPE_HIDDEN 5
#define ODBCINST_PROMPTTYPE_TEXTEDIT_PASSWORD 6
typedef struct tODBCINSTPROPERTY
{

View File

@@ -17,13 +17,8 @@
* Boston, MA 02111-1307, USA.
*/
#ifdef UNIXODBC
#include <sql.h>
#include <sqlext.h>
#else
#include "isql.h"
#include "isqlext.h"
#endif
#include <mdbodbc.h>
@@ -32,7 +27,7 @@
#include "connectparams.h"
static char software_version[] = "$Id: odbc.c,v 1.24 2004/09/23 05:07:12 whydoubt Exp $";
static char software_version[] = "$Id: odbc.c,v 1.25 2004/10/16 14:21:16 whydoubt Exp $";
static void *no_unused_var_warn[] = {software_version,
no_unused_var_warn};