]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Prevent __init__ from being called for Alias, subclasses
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 20 Feb 2019 20:00:09 +0000 (15:00 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Feb 2019 16:18:19 +0000 (11:18 -0500)
commit4ca3092c0a89855cd740bafb4e0fb4c99051f89e
treee8a42e8391cf1b30f5b20ba10da1f3fa9f97e17c
parent7a4c40ff6b9d278529735c792c3ddfda60bd4a85
Prevent __init__ from being called for Alias, subclasses

The :class:`.Alias` class and related subclasses :class:`.CTE`,
:class:`.Lateral` and :class:`.TableSample` have been reworked so that it is
not possible for a user to construct the objects directly.  These constructs
require that the standalone construction function or selectable-bound method
be used to instantiate new objects.

Fixes: #4509
Change-Id: I74ae4786cb3ae625dab33b00bfd6bdc4e1219139
doc/build/changelog/unreleased_13/4509.rst [new file with mode: 0644]
lib/sqlalchemy/sql/__init__.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/functions.py
lib/sqlalchemy/sql/selectable.py
test/sql/test_cte.py
test/sql/test_lateral.py
test/sql/test_selectable.py
test/sql/test_tablesample.py