mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Fix a bug in SQLConnect
This commit is contained in:
parent
17e190f540
commit
845f36011a
@ -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:
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user