aboutsummaryrefslogtreecommitdiff
path: root/databases/sqsh/files/patch-src_cmd__connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'databases/sqsh/files/patch-src_cmd__connect.c')
-rw-r--r--databases/sqsh/files/patch-src_cmd__connect.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/databases/sqsh/files/patch-src_cmd__connect.c b/databases/sqsh/files/patch-src_cmd__connect.c
index b2c79eee90b9..dc77a7dc194b 100644
--- a/databases/sqsh/files/patch-src_cmd__connect.c
+++ b/databases/sqsh/files/patch-src_cmd__connect.c
@@ -1,6 +1,7 @@
---- src/cmd_connect.c 2014-04-04 08:22:38
-+++ src/cmd_connect.c 2018-04-20 18:26:38
-@@ -861,6 +861,14 @@
+--- src/cmd_connect.c.orig 2014-04-04 08:22:38 UTC
++++ src/cmd_connect.c
+@@ -860,8 +860,16 @@ int cmd_connect( argc, argv )
+ /* Then we use freetds which uses enum instead of defines */
else if (strcmp(tds_version, "7.0") == 0)
version = CS_TDS_70;
+ else if (strcmp(tds_version, "7.1") == 0)
@@ -12,15 +13,15 @@
+ else if (strcmp(tds_version, "7.4") == 0)
+ version = CS_TDS_74;
else if (strcmp(tds_version, "8.0") == 0)
-- version = CS_TDS_80;
-+ version = CS_TDS_71; /* https://sourceforge.net/p/sqsh/discussion/365924/thread/29ae1664/#7f59/707f */
+ version = CS_TDS_71;
#endif
else version = CS_TDS_50; /* default version */
-@@ -1259,7 +1267,16 @@
+
+@@ -1258,9 +1266,18 @@ int cmd_connect( argc, argv )
+ case CS_TDS_70:
env_set( g_env, "tds_version", "7.0" );
break;
-- case CS_TDS_80:
-+ case CS_TDS_71:
+ case CS_TDS_71:
env_set( g_env, "tds_version", "8.0" );
break;
+ case CS_TDS_72:
@@ -34,3 +35,4 @@
+ break;
#endif
default:
+ env_set( g_env, "tds_version", "unknown" );