Packages
tds
1.0.17
2.3.8
2.3.7
2.3.6
2.3.5
2.3.4
2.3.2
2.3.1
2.3.0
2.3.0-rc.1
2.3.0-rc.0
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.1-rc2
2.0.1-rc1
2.0.0
retired
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.0
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.0
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Microsoft SQL Server client (Elixir implementation of the MS TDS protocol)
Current section
75 Versions
Jump to
Current section
75 Versions
Compare versions
3
files changed
+12
additions
-13
deletions
| @@ -24,4 +24,4 @@ | |
| 24 24 | {<<"optional">>,false}, |
| 25 25 | {<<"repository">>,<<"hexpm">>}, |
| 26 26 | {<<"requirement">>,<<"~> 1.1">>}]]}. |
| 27 | - {<<"version">>,<<"1.0.16">>}. |
| 27 | + {<<"version">>,<<"1.0.17">>}. |
| @@ -867,7 +867,7 @@ defmodule Tds.Protocol do | |
| 867 867 | val when val in 1..7 -> conn ++ ["SET DATEFIRST #{val}; "] |
| 868 868 | val -> raise( |
| 869 869 | ArgumentError, |
| 870 | - "set_datefirst: #{val} is out of bounds, valid range is 1..7" |
| 870 | + "set_datefirst: #{inspect(val)} is out of bounds, valid range is 1..7" |
| 871 871 | ) |
| 872 872 | end |
| 873 873 | end |
| @@ -879,7 +879,7 @@ defmodule Tds.Protocol do | |
| 879 879 | conn ++ ["SET DATEFORMAT #{val}; "] |
| 880 880 | val -> raise( |
| 881 881 | ArgumentError, |
| 882 | - "set_dateformat: #{inspect(val)} has ivalid value, " <> |
| 882 | + "set_dateformat: #{inspect(val)} is an invalid value, " <> |
| 883 883 | "valid values are [:mdy, :dmy, :ymd, :ydm, :myd, :dym]" |
| 884 884 | ) |
| 885 885 | end |
| @@ -896,7 +896,7 @@ defmodule Tds.Protocol do | |
| 896 896 | conn ++ ["SET DEADLOCK_PRIORITY #{val}; "] |
| 897 897 | val -> raise( |
| 898 898 | ArgumentError, |
| 899 | - "set_deadlock_priority: #{inspect(val)} has ivalid value, " <> |
| 899 | + "set_deadlock_priority: #{inspect(val)} is an invalid value, " <> |
| 900 900 | "valid values are #{inspect([:low, :high, :normal|-10..10])}" |
| 901 901 | ) |
| 902 902 | end |
| @@ -909,7 +909,7 @@ defmodule Tds.Protocol do | |
| 909 909 | conn ++ ["SET LOCK_TIMEOUT #{val}; "] |
| 910 910 | val -> raise( |
| 911 911 | ArgumentError, |
| 912 | - "set_lock_timeout: #{inspect(val)} has ivalid value, " <> |
| 912 | + "set_lock_timeout: #{inspect(val)} is an invalid value, " <> |
| 913 913 | "must be an positive integer." |
| 914 914 | ) |
| 915 915 | end |
| @@ -923,7 +923,7 @@ defmodule Tds.Protocol do | |
| 923 923 | conn ++ ["SET REMOTE_PROC_TRANSACTIONS #{val}; "] |
| 924 924 | val -> raise( |
| 925 925 | ArgumentError, |
| 926 | - "set_remote_proc_transactions: #{inspect(val)} has ivalid value, " <> |
| 926 | + "set_remote_proc_transactions: #{inspect(val)} is an invalid value, " <> |
| 927 927 | "should be either :on, :off, nil" |
| 928 928 | ) |
| 929 929 | end |
| @@ -937,7 +937,7 @@ defmodule Tds.Protocol do | |
| 937 937 | conn ++ ["SET IMPLICIT_TRANSACTIONS #{val}; "] |
| 938 938 | val -> raise( |
| 939 939 | ArgumentError, |
| 940 | - "set_implicit_transactions: #{inspect(val)} has ivalid value, " <> |
| 940 | + "set_implicit_transactions: #{inspect(val)} is an invalid value, " <> |
| 941 941 | "should be either :on, :off, nil" |
| 942 942 | ) |
| 943 943 | end |
| @@ -952,12 +952,11 @@ defmodule Tds.Protocol do | |
| 952 952 | |> Atom.to_string() |
| 953 953 | |> String.replace("_", " ") |
| 954 954 | |> String.upcase() |
| 955 | - conn ++ ["SET TRANSACTION_ISOLATION_LEVEL #{t}; "] |
| 955 | + conn ++ ["SET TRANSACTION ISOLATION LEVEL #{t}; "] |
| 956 956 | val -> raise( |
| 957 957 | ArgumentError, |
| 958 | - "set_transaction_isolation_level: #{inspect(val)} has ivalid value, " <> |
| 959 | - "should be one of [:read_uncommited, :read_commited, :repeatable_read, " <> |
| 960 | - ":snapshot, :serializable] or nil" |
| 958 | + "set_transaction_isolation_level: #{inspect(val)} is an invalid value, " <> |
| 959 | + "should be one of #{inspect(@trans_levels)} or nil" |
| 961 960 | ) |
| 962 961 | end |
| 963 962 | end |
| @@ -971,7 +970,7 @@ defmodule Tds.Protocol do | |
| 971 970 | conn ++ ["ALTER DATABASE [#{database}] SET ALLOW_SNAPSHOT_ISOLATION #{val}; "] |
| 972 971 | val -> raise( |
| 973 972 | ArgumentError, |
| 974 | - "set_allow_snapshot_isolation: #{inspect(val)} has ivalid value, " <> |
| 973 | + "set_allow_snapshot_isolation: #{inspect(val)} is an invalid value, " <> |
| 975 974 | "should be either :on, :off, nil" |
| 976 975 | ) |
| 977 976 | end |
| @@ -5,7 +5,7 @@ defmodule Tds.Mixfile do | |
| 5 5 | def project do |
| 6 6 | [ |
| 7 7 | app: :tds, |
| 8 | - version: "1.0.16", |
| 8 | + version: "1.0.17", |
| 9 9 | elixir: "~> 1.0", |
| 10 10 | deps: deps(), |
| 11 11 | test_coverage: [tool: ExCoveralls], |