-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Handle decimal in query expressions #764
Comments
MSSQL: livehelpnow/tds_ecto@8d1c9f8 |
Trying to run tests for elixir-ecto/ecto#764
Couple of questions: Firstly, I'm trying to write a unit test for the Decimal case, but this code: test "decimals" do
query = Model |> select([], Decimal.new(123.0)) |> normalize
assert SQL.all(query) == ~s{SELECT 123.0 FROM "model" AS m0}
end gives me this error:
What is an example query expression I could use to test the Decimal change? Secondly, I'm getting the following error when I try to run integration tests with the newest commit in master:
Code is here. I looked at the changes to the |
You don't need to write one as we already have tests in the
will convert 1.0 to Decimal.
Maybe an issue based on how things are being loaded? I have improved the error message but the issue is that it can't find the config for Ecto.Integration.TestRepo. |
Thanks for the help, José! I had SQLite: jazzyb/sqlite_ecto@a2a48d8 |
For @elixir-lang/ecto-adapters,
It is just a matter of adding this clause: f96e602#diff-975ad8a7b1f8e27ac59595bcdbdd0a07R355
The text was updated successfully, but these errors were encountered: