changed
CHANGELOG.md
|
@@ -1,3 +1,7 @@
|
1
|
+ # v0.5.2
|
2
|
+ * Bug Fixes
|
3
|
+ * If server outputs warning result rows are missing.
|
4
|
+
|
1
5
|
# v0.5.1
|
2
6
|
* Bug Fixes
|
3
7
|
* Added token decoder for return status of RPC
|
changed
README.md
|
@@ -29,7 +29,7 @@ iex> Tds.Connection.query!(pid, "INSERT INTO MyTable (MyColumn) VALUES (@my_valu
|
29
29
|
* Supports TDS Version 7.3, 7.4
|
30
30
|
|
31
31
|
## Connecting to SQL Instances
|
32
|
- Tds Supports sql instances by passing ```instance: "instancename"``` to the connection options.
|
32
|
+ Tds Supports sql instances by passing ```instance: "instancename"``` to the connection options.
|
33
33
|
|
34
34
|
|
35
35
|
|
|
@@ -68,7 +68,7 @@ The tests require an addition to your hosts file to connect to your sql server d
|
68
68
|
|
69
69
|
Additionally SQL authentication needs to be used for connecting and testing. Add the user test_user as owner to the database test_db. See one of the test files for the connection information and port number.
|
70
70
|
|
71
|
- ##Special Thanks
|
71
|
+ ##Special Thanks
|
72
72
|
|
73
73
|
Thanks to ericmj, this driver takes a lot of inspiration from postgrex.
|
74
74
|
https://github.com/ericmj/
|
|
@@ -79,7 +79,7 @@ Also thanks to everyone in the Elixir Gogle group and on the Elixir IRC Channel
|
79
79
|
|
80
80
|
## License
|
81
81
|
|
82
|
- Copyright 2014 LiveHelpNow
|
82
|
+ Copyright 2014, 2015 LiveHelpNow
|
83
83
|
|
84
84
|
Licensed under the Apache License, Version 2.0 (the "License");
|
85
85
|
you may not use this file except in compliance with the License.
|
changed
hex_metadata.config
|
@@ -17,4 +17,4 @@
|
17
17
|
[{<<"app">>,<<"decimal">>},
|
18
18
|
{<<"optional">>,false},
|
19
19
|
{<<"requirement">>,<<"~> 1.0">>}]}]}.
|
20
|
- {<<"version">>,<<"0.5.1">>}.
|
20
|
+ {<<"version">>,<<"0.5.2">>}.
|
changed
lib/tds/connection.ex
|
@@ -214,6 +214,10 @@ defmodule Tds.Connection do
|
214
214
|
|
215
215
|
end
|
216
216
|
|
217
|
+ def handle_info({:udp_error, _, :econnreset}, _s) do
|
218
|
+ raise "Tds encountered an error while connecting to the Sql Server Browser: econnreset"
|
219
|
+ end
|
220
|
+
|
217
221
|
def handle_info({:tcp, _, _data}, %{sock: {mod, sock}, opts: opts, state: :prelogin} = s) do
|
218
222
|
case mod do
|
219
223
|
:gen_tcp -> :inet.setopts(sock, active: :once)
|
changed
lib/tds/tokens.ex
|
@@ -80,7 +80,7 @@ defmodule Tds.Tokens do
|
80
80
|
sn_len, server_name::binary-size(sn_len)-unit(16),
|
81
81
|
pn_len, proc_name::binary-size(pn_len)-unit(16),
|
82
82
|
line_number::little-size(32),
|
83
|
- tail::binary>>, _tokens) do
|
83
|
+ tail::binary>>, tokens) do
|
84
84
|
i = %{
|
85
85
|
length: length,
|
86
86
|
number: number,
|
|
@@ -91,7 +91,8 @@ defmodule Tds.Tokens do
|
91
91
|
proc_name: ucs2_to_utf(proc_name),
|
92
92
|
line_number: line_number,
|
93
93
|
}
|
94
|
- {[info: i], tail}
|
94
|
+ info_token = Keyword.get(tokens, :info, [])
|
95
|
+ {[[i | info_token] | tokens], tail}
|
95
96
|
end
|
changed
mix.exs
|
@@ -3,7 +3,7 @@ defmodule Tds.Mixfile do
|
3
3
|
|
4
4
|
def project do
|
5
5
|
[app: :tds,
|
6
|
- version: "0.5.1",
|
6
|
+ version: "0.5.2",
|
7
7
|
elixir: "~> 1.0.0",
|
8
8
|
deps: deps,
|
9
9
|
source_url: "https://github.com/livehelpnow/tds",
|