tiny_tds 2.1.0-x64-mingw32 → 2.1.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6650d4e19ea2de1455ca9566568373e1d67686c4
4
- data.tar.gz: d7042f06e50aaac84a025552f4f0b4b5c730aace
3
+ metadata.gz: 30f17684992eb6a085288f44830b211d124539c1
4
+ data.tar.gz: 349de1ff7d8efa583ea9ae9f8604110ac0b6496b
5
5
  SHA512:
6
- metadata.gz: d9968242d2268498a0b5895d9c047a9dd10c9b807ddcc7318f5bb9405534bbec60d14c53b1e9f77083de7e88d0fac6e2a7b39eb61a25847225cb011e4923b0d6
7
- data.tar.gz: 24e6076b9f644863e7b077c61c6a4347197052f621dac6a84333e22ec38a784b3c315462329042b5bc283d487956e98ee32774bd5a487c9cfceb00c63e357f1c
6
+ metadata.gz: 87b6543bd328a1c17acd1b3fa2e1560a2f9c029a103e5af1793f03c4f05a6a03503e399a2c7693bceac6abf7877b618e91f82e3e6368fc1c162bcf9a023e6064
7
+ data.tar.gz: e91414d94341155fe28abc9d844540741609c5419c9ca2aa2a6afedc2d388f3b8f5343371e5f7b43240e098a7a694ed948e8b33bfe165844d80e2f6ee3f8188c
@@ -1,12 +1,38 @@
1
- Having problems? Have you checked these first:
1
+ ## Before submitting an issue please check these first!
2
2
 
3
- * Have you made sure to [enable SQL Server authentication](http://bit.ly/1Kw3set)?
3
+ * On Windows? If so, do you need devkit for your ruby install?
4
+ * Using Ubuntu? If so, you may have forgotten to install FreeTDS first.
4
5
  * Are you using FreeTDS 0.95.80 or later? Check `$ tsql -C` to find out.
5
6
  * If not, please update then uninstall the TinyTDS gem and re-install it.
6
- * Using Ubuntu? If so, you may have forgotten to install FreeTDS first.
7
+ * Have you made sure to [enable SQL Server authentication](http://bit.ly/1Kw3set)?
7
8
  * Doing work with threads and the raw client? Use the ConnectionPool gem?
8
9
 
9
- If none of these help. Please make sure to report:
10
+ If none of these help. Please fill out the following:
11
+
12
+ ## Environment
13
+
14
+ **Operating System**
15
+
16
+ Please describe your operating system and version here.
17
+ If unsure please try the following from the command line:
18
+
19
+ * For Windows: `systeminfo | findstr /C:OS`
20
+ * For Linux: `lsb_release -a; uname -a`
21
+ * For Mac OSX: `sw_vers`
22
+
23
+ **TinyTDS Version and Information**
24
+
25
+ ```
26
+ Please paste the full output of `ttds-tsql -C` (or `tsql -C` for older versions
27
+ of TinyTDS) here. If TinyTDS does not install, please provide the gem version.
28
+ ```
29
+
30
+
31
+ **FreeTDS Version**
32
+
33
+ Please provide your system's FreeTDS version. If you are using the pre-compiled
34
+ windows gem you may omit this section.
35
+
36
+ ## Description
10
37
 
11
- * What platform you are on. Windows, Mac, Ubuntu, etc.
12
- * What version of FreeTDS you are using.
38
+ Please describe the bug or feature request here.
data/README.md CHANGED
@@ -40,7 +40,7 @@ If you're using RubyInstaller the binary gem will require that devkit is install
40
40
  On all other platforms, we will find these dependencies. It is recommended that you install the latest FreeTDS via your method of choice. For example, here is how to install FreeTDS on Ubuntu. You might also need the `build-essential` and possibly the `libc6-dev` packages.
41
41
 
42
42
  ```shell
43
- $ apt-get wget
43
+ $ apt-get install wget
44
44
  $ apt-get install build-essential
45
45
  $ apt-get install libc6-dev
46
46
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.1
@@ -7,7 +7,6 @@ static ID sym_username, sym_password, sym_dataserver, sym_database, sym_appname,
7
7
  static ID intern_source_eql, intern_severity_eql, intern_db_error_number_eql, intern_os_error_number_eql;
8
8
  static ID intern_new, intern_dup, intern_transpose_iconv_encoding, intern_local_offset, intern_gsub, intern_call;
9
9
  VALUE opt_escape_regex, opt_escape_dblquote;
10
- VALUE message_handler;
11
10
 
12
11
 
13
12
  // Lib Macros
@@ -44,6 +43,7 @@ VALUE rb_tinytds_raise_error(DBPROCESS *dbproc, int is_message, int cancel, cons
44
43
  rb_funcall(e, intern_os_error_number_eql, 1, INT2FIX(oserr));
45
44
 
46
45
  if (severity <= 10 && is_message) {
46
+ VALUE message_handler = userdata && userdata->message_handler ? userdata->message_handler : Qnil;
47
47
  if (message_handler && message_handler != Qnil && rb_respond_to(message_handler, intern_call) != 0) {
48
48
  rb_funcall(message_handler, intern_call, 1, e);
49
49
  }
@@ -322,7 +322,7 @@ static VALUE rb_tinytds_connect(VALUE self, VALUE opts) {
322
322
  azure = rb_hash_aref(opts, sym_azure);
323
323
  contained = rb_hash_aref(opts, sym_contained);
324
324
  use_utf16 = rb_hash_aref(opts, sym_use_utf16);
325
- message_handler = rb_hash_aref(opts, sym_message_handler);
325
+ cwrap->userdata->message_handler = rb_hash_aref(opts, sym_message_handler);
326
326
  /* Dealing with options. */
327
327
  if (dbinit() == FAIL) {
328
328
  rb_raise(cTinyTdsError, "failed dbinit() function");
@@ -26,6 +26,7 @@ typedef struct {
26
26
  short int dbcancel_sent;
27
27
  short int nonblocking;
28
28
  tinytds_errordata nonblocking_error;
29
+ VALUE message_handler;
29
30
  } tinytds_client_userdata;
30
31
 
31
32
  typedef struct {
@@ -3,7 +3,7 @@
3
3
  set -x
4
4
  set -e
5
5
 
6
- tag=2.0
6
+ tag=2017-GA
7
7
 
8
8
  docker pull metaskills/mssql-server-linux-tinytds:$tag
9
9
 
@@ -89,7 +89,7 @@ module TinyTds
89
89
  end
90
90
 
91
91
  def connection_timeout
92
- sqlserver_azure? ? 20 : 5
92
+ sqlserver_azure? ? 20 : 8
93
93
  end
94
94
 
95
95
  def assert_client_works(client)
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.1
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-10-01 00:00:00.000000000 Z
13
+ date: 2018-01-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mini_portile2
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  version: '0'
234
234
  requirements: []
235
235
  rubyforge_project:
236
- rubygems_version: 2.6.12
236
+ rubygems_version: 2.6.14
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: TinyTDS - A modern, simple and fast FreeTDS library for Ruby using DB-Library.