MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / test_ilike_escape

Method test_ilike_escape

test/sql/test_operators.py:3933–3938  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3931 )
3932
3933 def test_ilike_escape(self):
3934 self.assert_compile(
3935 column("x").ilike("a%b_c", escape="\\"),
3936 "lower(x) LIKE lower(:x_1) ESCAPE '\\'",
3937 checkparams={"x_1": "a%b_c"},
3938 )
3939
3940 def test_ilike_escape_empty(self):
3941 self.assert_compile(

Callers

nothing calls this directly

Calls 3

columnFunction · 0.90
assert_compileMethod · 0.80
ilikeMethod · 0.45

Tested by

no test coverage detected