MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_prefix_dialect_specific

Method test_prefix_dialect_specific

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

Source from the content-addressed store, hash-verified

2320 )
2321
2322 def test_prefix_dialect_specific(self):
2323 self.assert_compile(
2324 table1.select()
2325 .prefix_with("SQL_CALC_FOUND_ROWS", dialect="sqlite")
2326 .prefix_with("SQL_SOME_WEIRD_MYSQL_THING", dialect="mysql"),
2327 "SELECT SQL_SOME_WEIRD_MYSQL_THING "
2328 "mytable.myid, mytable.name, mytable.description FROM mytable",
2329 dialect=mysql.dialect(),
2330 )
2331
2332 def test_collate(self):
2333 # 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