diff --git a/src/options.c b/src/options.c index 6e586bb..c19db7a 100644 --- a/src/options.c +++ b/src/options.c @@ -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) { diff --git a/src/tds_fdw.c b/src/tds_fdw.c index d052a4c..0bbecbd 100644 --- a/src/tds_fdw.c +++ b/src/tds_fdw.c @@ -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) {