Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Jun 7, 2024
1 parent c703989 commit 97ce42f
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions test/elixir_calendar_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,17 @@ defmodule ElixirCalendarTest do
test "Elixir.Date insert nil value", context do

Check failure on line 75 in test/elixir_calendar_test.exs

View workflow job for this annotation

GitHub Actions / Unit Tests (mssql/server:2017-latest, 23.3, 1.13.4)

test Elixir.Date insert nil value (ElixirCalendarTest)

Check failure on line 75 in test/elixir_calendar_test.exs

View workflow job for this annotation

GitHub Actions / Unit Tests (mssql/server:2022-latest, 23.3, 1.13.4)

test Elixir.Date insert nil value (ElixirCalendarTest)

Check failure on line 75 in test/elixir_calendar_test.exs

View workflow job for this annotation

GitHub Actions / Unit Tests (azure-sql-edge:latest, 23.3, 1.13.4)

test Elixir.Date insert nil value (ElixirCalendarTest)

Check failure on line 75 in test/elixir_calendar_test.exs

View workflow job for this annotation

GitHub Actions / Unit Tests (mssql/server:2022-latest, 24.3, 1.14.4, lint)

test Elixir.Date insert nil value (ElixirCalendarTest)
:ok = query("CREATE TABLE #date_test (x date)", [])

query("insert into #date_test values (@param1), (@param2)", [
%Tds.Parameter{
name: "@param1",
value: ~D[2024-01-01]
},
%Tds.Parameter{
name: "@param2",
value: nil
}
])
:ok =
query("insert into #date_test values (@param1), (@param2)", [
%Tds.Parameter{
name: "@param1",
value: ~D[2024-01-01]
},
%Tds.Parameter{
name: "@param2",
value: nil
}
])

assert [[~D[2024-01-01]], [nil]] = query("select x from #date_test", [])
end
Expand Down

0 comments on commit 97ce42f

Please sign in to comment.