Make DSN and DBQ extraction from connection string case insensitive (#414)

This commit is contained in:
Cédric Luthi
2023-07-03 15:34:02 -04:00
committed by GitHub
parent 1097a48b80
commit 633d1c091f
+3 -3
View File
@@ -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 "="