Skip to content

Commit

Permalink
eh
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Nov 7, 2024
1 parent 020e912 commit b1af277
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/ecto/adapters/clickhouse/extract_statements_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ defmodule Ecto.Adapters.ClickHouse.ExtractStatementsTest do
assert extract_statements("select '`a; b`'; select 2;") == ["select '`a; b`'", "select 2"]
assert extract_statements("select '`a`; `b`'; select 2;") == ["select '`a`; `b`'", "select 2"]

assert extract_statements("select 'DO NOT RUN THIS: \\'; drop table events\\''") == [
# sanity check
assert ~S[select 'DO NOT RUN THIS: \'; drop table events\''] ==
"select 'DO NOT RUN THIS: \\'; drop table events\\''"

assert extract_statements(~S[select 'DO NOT RUN THIS: \'; drop table events\'']) == [
~S[select 'DO NOT RUN THIS: \'; drop table events\'']
]

assert extract_statements("select `funny_columns;`; select 2;") == [
Expand Down

0 comments on commit b1af277

Please sign in to comment.