Fix a bug in SQLConnect

This commit is contained in:
whydoubt 2004-09-14 00:13:19 +00:00
parent 17e190f540
commit 845f36011a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,6 @@
Mon Sep 13 19:10:24 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
* src/odbc/odbc.c: Fix a bug in SQLConnect
Sun Sep 12 14:03:10 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
* include/mdbtools.h:
* src/libmdb/write.c:

View File

@ -32,7 +32,7 @@
#include "connectparams.h"
static char software_version[] = "$Id: odbc.c,v 1.20 2004/09/12 20:56:35 whydoubt Exp $";
static char software_version[] = "$Id: odbc.c,v 1.21 2004/09/14 00:13:20 whydoubt Exp $";
static void *no_unused_var_warn[] = {software_version,
no_unused_var_warn};
@ -574,6 +574,8 @@ SQLRETURN SQL_API SQLConnect(
params = ((ODBCConnection*) hdbc)->params;
params->dsnName = g_string_assign (params->dsnName, szDSN);
if (!LookupDSN (params, szDSN))
{
LogError ("Could not find DSN in odbc.ini");