diff --git a/src/options.c b/src/options.c index 8e5b485..992cd0c 100644 --- a/src/options.c +++ b/src/options.c @@ -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) { diff --git a/src/tds_fdw.c b/src/tds_fdw.c index 53f57ee..c80bf6e 100644 --- a/src/tds_fdw.c +++ b/src/tds_fdw.c @@ -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) {