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 +4 -4
- data/ISSUE_TEMPLATE.md +32 -6
- data/README.md +1 -1
- data/VERSION +1 -1
- data/ext/tiny_tds/client.c +2 -2
- data/ext/tiny_tds/client.h +1 -0
- data/test/bin/setup.sh +1 -1
- data/test/test_helper.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30f17684992eb6a085288f44830b211d124539c1
|
4
|
+
data.tar.gz: 349de1ff7d8efa583ea9ae9f8604110ac0b6496b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87b6543bd328a1c17acd1b3fa2e1560a2f9c029a103e5af1793f03c4f05a6a03503e399a2c7693bceac6abf7877b618e91f82e3e6368fc1c162bcf9a023e6064
|
7
|
+
data.tar.gz: e91414d94341155fe28abc9d844540741609c5419c9ca2aa2a6afedc2d388f3b8f5343371e5f7b43240e098a7a694ed948e8b33bfe165844d80e2f6ee3f8188c
|
data/ISSUE_TEMPLATE.md
CHANGED
@@ -1,12 +1,38 @@
|
|
1
|
-
|
1
|
+
## Before submitting an issue please check these first!
|
2
2
|
|
3
|
-
*
|
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
|
-
*
|
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
|
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
|
-
|
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.
|
1
|
+
2.1.1
|
data/ext/tiny_tds/client.c
CHANGED
@@ -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");
|
data/ext/tiny_tds/client.h
CHANGED
data/test/bin/setup.sh
CHANGED
data/test/test_helper.rb
CHANGED
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.
|
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:
|
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.
|
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.
|