Skip to content

Commit

Permalink
Issue #100: Add support for tds_version 7.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffMontee committed Sep 26, 2016
1 parent 127c40e commit 3a803c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/options.c
Expand Up @@ -363,6 +363,13 @@ void tdsGetForeignServerOptions(List *options_list, TdsFdwOptionSet *option_set)
tds_version_test = 1;
}
#endif

#ifdef DBVERSION_74
else if (strcmp(option_set->tds_version, "7.4") == 0)
{
tds_version_test = 1;
}
#endif

if (!tds_version_test)
{
Expand Down
7 changes: 7 additions & 0 deletions src/tds_fdw.c
Expand Up @@ -479,6 +479,13 @@ int tdsSetupConnection(TdsFdwOptionSet* option_set, LOGINREC *login, DBPROCESS *
tds_version = DBVERSION_73;
}
#endif

#ifdef DBVERSION_74
else if (strcmp(option_set->tds_version, "7.4") == 0)
{
tds_version = DBVERSION_74;
}
#endif

if (tds_version == DBVERSION_UNKNOWN)
{
Expand Down

0 comments on commit 3a803c5

Please sign in to comment.