MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_literal_binds_w_quotes

Method test_literal_binds_w_quotes

test/sql/test_defaults.py:71–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69 )
70
71 def test_literal_binds_w_quotes(self):
72 m = MetaData()
73 t = Table(
74 "t", m, Column("x", Integer, server_default=literal("5 ' 8"))
75 )
76 self.assert_compile(
77 CreateTable(t), """CREATE TABLE t (x INTEGER DEFAULT '5 '' 8')"""
78 )
79
80 def test_text_literal_binds(self):
81 m = MetaData()

Callers

nothing calls this directly

Calls 6

MetaDataClass · 0.90
TableClass · 0.90
ColumnClass · 0.90
literalFunction · 0.90
CreateTableClass · 0.85
assert_compileMethod · 0.80

Tested by

no test coverage detected