MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_column_quoting

Method test_column_quoting

test/sql/test_values.py:165–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163 )
164
165 def test_column_quoting(self):
166 v1 = values(
167 column("CaseSensitive", Integer),
168 column("has spaces", String),
169 column("number", Integer),
170 name="Spaces and Cases",
171 ).data([(1, "textA", 99), (2, "textB", 88)])
172 self.assert_compile(
173 select(v1),
174 'SELECT "Spaces and Cases"."CaseSensitive", '
175 '"Spaces and Cases"."has spaces", "Spaces and Cases".number FROM '
176 "(VALUES (:param_1, :param_2, :param_3), "
177 "(:param_4, :param_5, :param_6)) "
178 'AS "Spaces and Cases" ("CaseSensitive", "has spaces", number)',
179 )
180
181 def test_values_in_scalar_subq(self):
182 """test #9772"""

Callers

nothing calls this directly

Calls 5

valuesFunction · 0.90
columnFunction · 0.90
selectFunction · 0.90
assert_compileMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected