MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_prefix_dialect_specific

Method test_prefix_dialect_specific

test/sql/test_compiler.py:2346–2354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2344 )
2345
2346 def test_prefix_dialect_specific(self):
2347 self.assert_compile(
2348 table1.select()
2349 .prefix_with("SQL_CALC_FOUND_ROWS", dialect="sqlite")
2350 .prefix_with("SQL_SOME_WEIRD_MYSQL_THING", dialect="mysql"),
2351 "SELECT SQL_SOME_WEIRD_MYSQL_THING "
2352 "mytable.myid, mytable.name, mytable.description FROM mytable",
2353 dialect=mysql.dialect(),
2354 )
2355
2356 def test_collate(self):
2357 # columns clause

Callers

nothing calls this directly

Calls 4

assert_compileMethod · 0.80
prefix_withMethod · 0.80
selectMethod · 0.45
dialectMethod · 0.45

Tested by

no test coverage detected