Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Add support for connection string abbreviations #7

Merged

Conversation

lyndonbauto
Copy link
Contributor

@lyndonbauto lyndonbauto commented Mar 4, 2020

Issue #6

Added support for user and password abbreviations (UID/PWD)
Added support for host instead of server and updated defines to match names properly
Added unit test to validate that these connection string changes work

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…common for ODBC connection strings

[2] Added unit test to validate that these connection string changes work
@lyndonbauto lyndonbauto marked this pull request as ready for review March 4, 2020 21:31
@@ -142,11 +142,15 @@ BOOL copyConnAttributes(ConnInfo *ci, const char *attribute,
STRCPY_FIXED(ci->drivername, value);
else if (stricmp(attribute, INI_SERVER) == 0)
STRCPY_FIXED(ci->server, value);
else if (stricmp(attribute, INI_HOST) == 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to combine this with the previous case, like in L149-50 and L152-3?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, will update this.

@anirudha anirudha merged commit 62d4314 into amazon-archives:master Mar 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants