MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / _cant_mix_formats_error

Method _cant_mix_formats_error

lib/sqlalchemy/sql/dml.py:275–281  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

273 )
274
275 def _cant_mix_formats_error(self) -> NoReturn:
276 raise exc.InvalidRequestError(
277 "Can't mix single and multiple VALUES "
278 "formats in one INSERT statement; one style appends to a "
279 "list while the other replaces values, so the intent is "
280 "ambiguous."
281 )
282
283
284@CompileState.plugin_for("default", "insert")

Callers 2

_process_valuesMethod · 0.80
_process_multi_valuesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected