tiny_tds 0.6.0-x86-mingw32 → 0.6.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ * 0.6.1 *
3
+
4
+ Use both dbsetversion() vs. dbsetlversion. Partially reverts #62.
5
+
6
+
2
7
  * 0.6.0 *
3
8
 
4
9
  * Use dbsetversion() vs. dbsetlversion. Fixes #62.
data/README.md CHANGED
@@ -30,7 +30,7 @@ TinyTDS is developed against FreeTDS 0.82 & 0.91, and 0.92 currents, the latest
30
30
 
31
31
  * **OK, I am installing FreeTDS, how do I configure it?** Contrary to what most people think, you do not need to specially configure FreeTDS in any way for client libraries like TinyTDS to use it. About the only requirement is that you compile it with libiconv for proper encoding support. FreeTDS must also be compiled with OpenSSL (or the like) to use it with Azure. See the "Using TinyTDS with Azure" section below for more info.
32
32
 
33
- * **Do I need to configure `--with-tdsver` equal to anything?** Maybe! Technically you should not have too. This is only a default for clients/configs that do not specify what TDS version they want to use. We are currently having issues with passing down a TDS version with the login bit. Till we get that fixed, if you are not using a freetds.conf or a TDSVER environment variable, the make sure to use 7.1 for FreeTDS 0.91 and 8.0 for FreeTDS 0.82.
33
+ * **Do I need to configure `--with-tdsver` equal to anything?** Most likely! Technically you should not have too. This is only a default for clients/configs that do not specify what TDS version they want to use. We are currently having issues with passing down a TDS version with the login bit. Till we get that fixed, if you are not using a freetds.conf or a TDSVER environment variable, the make sure to use 7.1 for FreeTDS 0.91 and 8.0 for FreeTDS 0.82.
34
34
 
35
35
  * **But I want to use TDS version 7.2 for SQL Server 2005 and up!** TinyTDS uses TDS version 7.1 (previously named 8.0) and fully supports all the data types supported by FreeTDS, this includes `varchar(max)` and `nvarchar(max)`. Technically compiling and using TDS version 7.2 with FreeTDS is not supported. But this does not mean those data types will not work. I know, it's confusing If you want to learn more, read this thread. http://lists.ibiblio.org/pipermail/freetds/2011q3/027306.html
36
36
 
@@ -270,6 +270,8 @@ static VALUE rb_tinytds_connect(VALUE self, VALUE opts) {
270
270
  dbsetlpwd(cwrap->login, StringValuePtr(pass));
271
271
  if (!NIL_P(app))
272
272
  dbsetlapp(cwrap->login, StringValuePtr(app));
273
+ if (!NIL_P(version))
274
+ dbsetlversion(cwrap->login, NUM2INT(version));
273
275
  if (!NIL_P(ltimeout))
274
276
  dbsetlogintime(NUM2INT(ltimeout));
275
277
  if (!NIL_P(timeout))
@@ -1,3 +1,3 @@
1
1
  module TinyTds
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: tiny_tds
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.0
5
+ version: 0.6.1
6
6
  platform: x86-mingw32
7
7
  authors:
8
8
  - Ken Collins
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-07-07 00:00:00.000000000 Z
13
+ date: 2013-07-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake