Skip to content

Correct docs in types.ex #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/ecto/adapters/tds/types.ex
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ if Code.ensure_loaded?(Tds) do
An Tds adapter Ecto Type that wraps erlang string into tuple so TDS driver
can understand if erlang string should be encoded as NVarChar or Varchar.

Due some limitations in Ecto and Tds driver, it is not possible to
support collations other than the one that is set on connection during login.
Due to some limitations in Ecto and Tds driver, it is not possible to
support collations other than the one set on connection during login.
Please be aware of this limitation if you plan to store varchar values in
your database using Ecto since you will probably lose some codepoints in
the value during encoding. Instead use `tds_encoding` library and first
Expand All @@ -240,7 +240,7 @@ if Code.ensure_loaded?(Tds) do
use Ecto.Type

@typedoc """
A erlang string
An erlang string
"""
@type t :: String.t

Expand Down