diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-09-03 09:56:41 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-09-03 22:20:15 -0400 |
commit | c3dcdbd21de44b23e527f5580c318e47ea6930a7 (patch) | |
tree | d180fa6afd22e6d09e27cf7c4d710c8177549557 /lib/sqlalchemy/sql/elements.py | |
parent | 43e0d7c06ba154e806a72d72ad06ae56a32225aa (diff) | |
download | sqlalchemy-c3dcdbd21de44b23e527f5580c318e47ea6930a7.tar.gz |
Raise for NULL discriminator and pk is present
An exception is now raised if the ORM loads a row for a polymorphic
instance that has a primary key but the discriminator column is NULL, as
discriminator columns should not be null.
Fixes: #4836
Change-Id: Ice1a853a7dd7687c58079b9933f145b90d314236
Diffstat (limited to 'lib/sqlalchemy/sql/elements.py')
0 files changed, 0 insertions, 0 deletions