Expected Behavior
Text types defined in a migration should be able to store strings of a length greater than 4000.
Current Behavior
When data of greater than length 4000 is inserted the statement is terminated.
Possible Solution
Perhaps a look at the erlang ODBC driver?
Steps to Reproduce (for bugs)
test "insert lots" do
string = 1..1200 |> Enum.reduce("", fn x, acc -> acc <> to_string(x) end)
# :text is of unrestricted size type
post = TestRepo.insert!(%Post{text: string})
assert post.text == string
end
Your Environment
- MssqlEcto version: 0.1
- Ecto version: 2.1
- Elixir version: 1.4
- Erlang version: 19
- Microsoft SQL Server version: 2016
- Operating System and version: Ubuntu 16.04
Expected Behavior
Text types defined in a migration should be able to store strings of a length greater than 4000.
Current Behavior
When data of greater than length 4000 is inserted the statement is terminated.
Possible Solution
Perhaps a look at the erlang ODBC driver?
Steps to Reproduce (for bugs)
Your Environment