Remember "Description" DSN attribute
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 6 Jan 2014 09:23:54 +0000 (11:23 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 6 Jan 2014 09:23:54 +0000 (11:23 +0200)
DSN attribute "Description" was not being copied from the input during DSN
creation in ConfigDSN(). This attribute is now copied into connection info
struct (while parsing input attributes) so that it is later saved (either in
File DSN or user/system DSN entry in Windows registry).

Patch and diagnosis by Nikhil Deshpande

dlg_specific.c

index 53edd6dd94c6e213b718fbc1ecd1a60d01e337bb..009a2bff3fae3ef10be5a4d7d03f1e0f9a39b7be 100644 (file)
@@ -489,6 +489,9 @@ copyAttributes(ConnInfo *ci, const char *attribute, const char *value)
    else if (stricmp(attribute, "driver") == 0)
        strcpy(ci->drivername, value);
 
+   else if (stricmp(attribute, INI_KDESC) == 0)
+       strcpy(ci->desc, value);
+
    else if (stricmp(attribute, INI_DATABASE) == 0)
        strcpy(ci->database, value);