Skip to content

Commit

Permalink
Issue #100: Add support for tds_version 7.4 for 1.0 branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffMontee committed Oct 25, 2016
1 parent 67723d9 commit de5bf52
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,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
8 changes: 8 additions & 0 deletions src/tds_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,14 @@ 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 de5bf52

Please sign in to comment.