MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_collate

Method test_collate

test/sql/test_quote.py:569–588  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

567 )
568
569 def test_collate(self):
570 self.assert_compile(column("foo").collate("utf8"), "foo COLLATE utf8")
571
572 self.assert_compile(
573 column("foo").collate("fr_FR"),
574 'foo COLLATE "fr_FR"',
575 dialect="postgresql",
576 )
577
578 self.assert_compile(
579 column("foo").collate("utf8_GERMAN_ci"),
580 "foo COLLATE `utf8_GERMAN_ci`",
581 dialect="mysql",
582 )
583
584 self.assert_compile(
585 column("foo").collate("SQL_Latin1_General_CP1_CI_AS"),
586 "foo COLLATE SQL_Latin1_General_CP1_CI_AS",
587 dialect="mssql",
588 )
589
590 def test_join(self):
591 # Lower case names, should not quote

Callers

nothing calls this directly

Calls 3

columnFunction · 0.90
assert_compileMethod · 0.80
collateMethod · 0.45

Tested by

no test coverage detected