elixir-ecto / db_connection

Database connection behaviour

Home Page:http://hexdocs.pm/db_connection/DBConnection.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Different login failure error is printed in console [windows, otp 20, elixir 1.9] [linux, otp 23, elixir 1.11]

mjaric opened this issue · comments

This is more question than an issue, I'm working on TDS deriver and noticed that same code behaves differently when OTP/elixir versions are not the same

Below is image, same test cases:

  • LEFT is windows, OTP 20, Elixir 1.9. Logged message is (Tds.Error) Line 1 (Error 18456): Login failed for user 'sa'
  • RIGHT is linux, OTP 23, Elixir 1.11. Logged message is (Tds.Error) tcp connect: econnrefused

win-nix-dissference

Is this something related to db_connection or erlang?

For note, this is test cases that is logged above

There are so many changes in environment that it is hard to know. I would try making the parameters as close as possible, including OS, and see how it changes things. You should be able to run Elixir v1.9 with OTP 23 (even if not officially supported).

I'm using asdf, so it shouldn't be that hard. I'll let you know when I narrow down when this occurs

Ah, this is totally my fault! It is test environment setup. Funny thing is that only this test case was affected.

Sorry for noise!

Thanks!