MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_cast_with_collate

Method test_cast_with_collate

test/sql/test_compiler.py:3078–3085  ·  view source on GitHub ↗
(self, collation_name, expected_sql, dialect)

Source from the content-addressed store, hash-verified

3076 id_="iaaa",
3077 )
3078 def test_cast_with_collate(self, collation_name, expected_sql, dialect):
3079 t1 = Table(
3080 "t1",
3081 MetaData(),
3082 Column("txt", String(10, collation=collation_name)),
3083 )
3084 stmt = select(func.cast(t1.c.txt, t1.c.txt.type))
3085 self.assert_compile(stmt, expected_sql, dialect=dialect)
3086
3087 def test_over(self):
3088 self.assert_compile(func.row_number().over(), "row_number() OVER ()")

Callers

nothing calls this directly

Calls 7

TableClass · 0.90
MetaDataClass · 0.90
ColumnClass · 0.90
StringClass · 0.90
selectFunction · 0.90
assert_compileMethod · 0.80
castMethod · 0.45

Tested by

no test coverage detected