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

Method test_like_escape

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

Source from the content-addressed store, hash-verified

3910 )
3911
3912 def test_like_escape(self):
3913 self.assert_compile(
3914 column("x").like("a%b_c", escape="\\"),
3915 "x LIKE :x_1 ESCAPE '\\'",
3916 checkparams={"x_1": "a%b_c"},
3917 )
3918
3919 def test_like_escape_empty(self):
3920 self.assert_compile(

Callers

nothing calls this directly

Calls 3

columnFunction · 0.90
assert_compileMethod · 0.80
likeMethod · 0.45

Tested by

no test coverage detected