mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-06-28 15:39:02 +08:00
ODBC driver dialog enhancements
This commit is contained in:
parent
222bbcdd01
commit
4b0f1c913c
@ -1,3 +1,6 @@
|
|||||||
|
Mon Apr 12 21:58:00 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
|
||||||
|
* src/odbc/connectparams.c: ODBC driver dialog enhancements
|
||||||
|
|
||||||
Mon Apr 12 09:56:23 EDT 2004 Brian Bruns <brian@bruns.com>
|
Mon Apr 12 09:56:23 EDT 2004 Brian Bruns <brian@bruns.com>
|
||||||
* include/mdbtools:
|
* include/mdbtools:
|
||||||
* src/libmdb/mem.c:
|
* src/libmdb/mem.c:
|
||||||
|
@ -104,7 +104,7 @@ int LoadDSN (
|
|||||||
{
|
{
|
||||||
if (!FindSection (stream, dsnName))
|
if (!FindSection (stream, dsnName))
|
||||||
{
|
{
|
||||||
g_printerr ("Couldn't find DSN %s in %s\n", iniFileName, dsnName);
|
g_printerr ("Couldn't find DSN %s in %s\n", dsnName, iniFileName);
|
||||||
fclose (stream);
|
fclose (stream);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -128,7 +128,7 @@ int LoadDSN (
|
|||||||
gboolean LookupDSN (ConnectParams* params, const gchar* dsnName)
|
gboolean LookupDSN (ConnectParams* params, const gchar* dsnName)
|
||||||
{
|
{
|
||||||
if (!params) {
|
if (!params) {
|
||||||
fprintf(stderr,"LookupDSN: no parameters, returning FALSE");
|
fprintf(stderr,"LookupDSN: no parameters, returning FALSE\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
@ -139,12 +139,12 @@ gboolean LookupDSN (ConnectParams* params, const gchar* dsnName)
|
|||||||
* Search for the ODBC ini file
|
* Search for the ODBC ini file
|
||||||
*/
|
*/
|
||||||
if (!(params->iniFileName = GetIniFileName ())) {
|
if (!(params->iniFileName = GetIniFileName ())) {
|
||||||
fprintf(stderr,"LookupDSN: GetIniFileName returned FALSE");
|
fprintf(stderr,"LookupDSN: GetIniFileName returned FALSE\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!LoadDSN (params->iniFileName->str, dsnName, params->table)) {
|
if (!LoadDSN (params->iniFileName->str, dsnName, params->table)) {
|
||||||
fprintf(stderr,"LookupDSN: LoadDSN returned FALSE");
|
fprintf(stderr,"LookupDSN: LoadDSN returned FALSE\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user