mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Make DSN and DBQ extraction from connection string case insensitive (#414)
This commit is contained in:
@@ -213,7 +213,7 @@ gchar* ExtractDSN (ConnectParams* params, const gchar* connectString)
|
|||||||
/*
|
/*
|
||||||
* Position ourselves to the beginning of "DSN"
|
* Position ourselves to the beginning of "DSN"
|
||||||
*/
|
*/
|
||||||
p = strstr (connectString, "DSN");
|
p = strcasestr (connectString, "DSN");
|
||||||
if (!p) return NULL;
|
if (!p) return NULL;
|
||||||
/*
|
/*
|
||||||
* Position ourselves to the "="
|
* Position ourselves to the "="
|
||||||
@@ -243,9 +243,9 @@ gchar* ExtractDBQ (ConnectParams* params, const gchar* connectString)
|
|||||||
if (!params)
|
if (!params)
|
||||||
return NULL;
|
return NULL;
|
||||||
/*
|
/*
|
||||||
* Position ourselves to the beginning of "DSN"
|
* Position ourselves to the beginning of "DBQ"
|
||||||
*/
|
*/
|
||||||
p = strstr (connectString, "DBQ");
|
p = strcasestr (connectString, "DBQ");
|
||||||
if (!p) return NULL;
|
if (!p) return NULL;
|
||||||
/*
|
/*
|
||||||
* Position ourselves to the "="
|
* Position ourselves to the "="
|
||||||
|
|||||||
Reference in New Issue
Block a user