tiny_tds 2.1.0.pre2-x64-mingw32 → 2.1.0.pre3-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/README.md +1 -3
- data/VERSION +1 -1
- data/ext/tiny_tds/client.c +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93e0eb01b0d797e9f3e1266a0be08158e4b761c1
|
4
|
+
data.tar.gz: 6671c344c84c8bbdb1911b042652227292b198fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32165a0fd2f22b0652894313b513e41c0e087528fa8e077338ea55d850e004452160fe4685cf73639c95480efe4f2e7d7c6065f67a7ae939f97194594c6ad21e
|
7
|
+
data.tar.gz: 7a145ce24108ee06536767427416ffedb7ff6c5ff1ff540bd07ab422c430c4dabbdc630571232da950555e4b1d28c0eda848dea4c5621e75b689e350ebca28a6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -117,7 +117,7 @@ Creating a new client takes a hash of options. For valid iconv encoding options,
|
|
117
117
|
* :appname - Short string seen in SQL Servers process/activity window.
|
118
118
|
* :tds_version - TDS version. Defaults to "7.3".
|
119
119
|
* :login_timeout - Seconds to wait for login. Default to 60 seconds.
|
120
|
-
* :timeout - Seconds to wait for a response to a SQL command. Default 5 seconds.
|
120
|
+
* :timeout - Seconds to wait for a response to a SQL command. Default 5 seconds. Prior to 1.0rc5, FreeTDS was unable to set the timeout on a per-client basis, permitting only a global timeout value. This means that if you're using an older version, the timeout values for all clients will be overwritten each time you instantiate a new `TinyTds::Client` object. If you are using 1.0rc5 or later, all clients will have an independent timeout setting as you'd expect.
|
121
121
|
* :encoding - Any valid iconv value like CP1251 or ISO-8859-1. Default UTF-8.
|
122
122
|
* :azure - Pass true to signal that you are connecting to azure.
|
123
123
|
* :contained - Pass true to signal that you are connecting with a contained database user.
|
@@ -482,5 +482,3 @@ My name is Ken Collins and I currently maintain the SQL Server adapter for Activ
|
|
482
482
|
## License
|
483
483
|
|
484
484
|
TinyTDS is Copyright (c) 2010-2015 Ken Collins, <ken@metaskills.net> and Will Bond (Veracross LLC) <wbond@breuer.com>. It is distributed under the MIT license. Windows binaries contain pre-compiled versions of FreeTDS <http://www.freetds.org/> which is licensed under the GNU LGPL license at <http://www.gnu.org/licenses/lgpl-2.0.html>
|
485
|
-
|
486
|
-
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.0.
|
1
|
+
2.1.0.pre3
|
data/ext/tiny_tds/client.c
CHANGED
@@ -326,8 +326,6 @@ static VALUE rb_tinytds_connect(VALUE self, VALUE opts) {
|
|
326
326
|
dbsetlapp(cwrap->login, StringValueCStr(app));
|
327
327
|
if (!NIL_P(ltimeout))
|
328
328
|
dbsetlogintime(NUM2INT(ltimeout));
|
329
|
-
if (!NIL_P(timeout))
|
330
|
-
dbsettime(NUM2INT(timeout));
|
331
329
|
if (!NIL_P(charset))
|
332
330
|
DBSETLCHARSET(cwrap->login, StringValueCStr(charset));
|
333
331
|
if (!NIL_P(database)) {
|
@@ -354,12 +352,18 @@ static VALUE rb_tinytds_connect(VALUE self, VALUE opts) {
|
|
354
352
|
#endif
|
355
353
|
cwrap->client = dbopen(cwrap->login, StringValueCStr(dataserver));
|
356
354
|
if (cwrap->client) {
|
357
|
-
VALUE transposed_encoding;
|
355
|
+
VALUE transposed_encoding, timeout_string;
|
358
356
|
|
359
357
|
cwrap->closed = 0;
|
360
358
|
cwrap->charset = charset;
|
361
359
|
if (!NIL_P(version))
|
362
360
|
dbsetversion(NUM2INT(version));
|
361
|
+
if (!NIL_P(timeout)) {
|
362
|
+
timeout_string = rb_sprintf("%"PRIsVALUE"", timeout);
|
363
|
+
if (dbsetopt(cwrap->client, DBSETTIME, StringValueCStr(timeout_string), 0) == FAIL) {
|
364
|
+
dbsettime(NUM2INT(timeout));
|
365
|
+
}
|
366
|
+
}
|
363
367
|
dbsetuserdata(cwrap->client, (BYTE*)cwrap->userdata);
|
364
368
|
cwrap->userdata->closed = 0;
|
365
369
|
if (!NIL_P(database) && (azure != Qtrue)) {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_tds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.
|
4
|
+
version: 2.1.0.pre3
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-09-
|
13
|
+
date: 2017-09-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mini_portile2
|