changed
README.md
|
@@ -72,7 +72,7 @@ Add Tds as a dependency in your `mix.exs` file.
|
72
72
|
|
73
73
|
```elixir
|
74
74
|
def deps do
|
75
|
- [{:tds_ecto, "~> 2.1"}]
|
75
|
+ [{:tds_ecto, "~> 2.2"}]
|
76
76
|
end
|
77
77
|
```
|
changed
hex_metadata.config
|
@@ -9,8 +9,6 @@
|
9
9
|
<<"lib/tds_ecto/utils.ex">>,<<"mix.exs">>,<<"README.md">>]}.
|
10
10
|
{<<"licenses">>,[<<"Apache 2.0">>]}.
|
11
11
|
{<<"links">>,[{<<"Github">>,<<"https://github.com/livehelpnow/tds_ecto">>}]}.
|
12
|
- {<<"maintainers">>,
|
13
|
- [<<"Justin Schneck">>,<<"Eric Witchin">>,<<"Milan Jaric">>]}.
|
14
12
|
{<<"name">>,<<"tds_ecto">>}.
|
15
13
|
{<<"requirements">>,
|
16
14
|
[[{<<"app">>,<<"ecto">>},
|
|
@@ -23,4 +21,4 @@
|
23
21
|
{<<"optional">>,false},
|
24
22
|
{<<"repository">>,<<"hexpm">>},
|
25
23
|
{<<"requirement">>,<<"~> 1.1">>}]]}.
|
26
|
- {<<"version">>,<<"2.2.1">>}.
|
24
|
+ {<<"version">>,<<"2.2.2">>}.
|
changed
lib/tds_ecto/connection.ex
|
@@ -654,7 +654,8 @@ if Code.ensure_loaded?(Tds) do
|
654
654
|
end
|
655
655
|
|
656
656
|
# :. - attribure, table alias name can be get from sources by passing index
|
657
|
- defp expr({{:., _, [{:&, _, [idx]}, field]}, _, []}, sources, _query) when is_atom(field) do
|
657
|
+ defp expr({{:., _, [{:&, _, [idx]}, field]}, _, []}, sources, _query)
|
658
|
+ when is_atom(field) or is_binary(field) do
|
658
659
|
{_, name, _} = elem(sources, idx)
|
659
660
|
"#{name}.#{quote_name(field)}"
|
660
661
|
end
|
|
@@ -903,7 +904,7 @@ if Code.ensure_loaded?(Tds) do
|
903
904
|
_ ->
|
904
905
|
error!(
|
905
906
|
nil,
|
906
|
- "TDS addapter do not support query of external database or linked server table. Please create SYNONIM!"
|
907
|
+ "TDS addapter do not support query of external database or linked server table. Please create SYNONYM!"
|
907
908
|
)
|
908
909
|
end
|
changed
mix.exs
|
@@ -1,7 +1,7 @@
|
1
1
|
defmodule TDS.Ecto.Mixfile do
|
2
2
|
use Mix.Project
|
3
3
|
|
4
|
- @version "2.2.1"
|
4
|
+ @version "2.2.2"
|
5
5
|
|
6
6
|
def project() do
|
7
7
|
[
|