You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classUser(db.Entity):
name=Required(str)
servers=Set("Server")
classWorker(db.User):
passclassAdmin(db.Worker):
pass# And M:1 relationship with another entityclassServer(db.Entity):
name=Required(str)
user=Optional(User)
We can add 3 sample servers (one of them without user) and try to get server's and user's names:
# New features
* Added native JSON data type support in all supported databases: https://docs.ponyorm.com/json.html
# Backward incompatible changes
* Dropped Python 2.6 support
# Improvements
* #179 Added the compatibility with PYPY using psycopg2cffi
* Added an experimental @db_session `strict` parameter: https://docs.ponyorm.com/transactions.html#strict
# Bugfixes
* #182 - LEFT JOIN doesn't work as expected for inherited entities when foreign key is None
* Some small bugs were fixed
Hello!
For example we have some inherited entities:
We can add 3 sample servers (one of them without user) and try to get server's and user's names:
We get output:
There is missing
because we have such SQL-query:
To get full list with None users we need to move WHERE clause into LEFT JOIN, like this:
Is there a workaround to get behavior like in last SQL?
The text was updated successfully, but these errors were encountered: