PonyORM v0.6.rc3 Release Notes

Release Date: 2014-10-30 // over 9 years ago
  • ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixed #18: Allow to specify size and unsigned for int type
    • ๐Ÿ›  Fixed #77: Discriminate Pony-generated fields in entities: Attribute.is_implicit field added
    • ๐Ÿ›  Fixed #83: Entity.get() should issue LIMIT 2 when non-unique criteria used for search
    • ๐Ÿ›  Fixed #84: executing db.insert() should turn off autocommit and begin transaction
    • Fixed #88: composite_index(*attrs) added to support non-unique composite indexes
    • ๐Ÿ›  Fixed #89: IN / NOT IN clauses works different with empty sequence
    • ๐Ÿ›  Fixed #90: Do not automatically add "distinct" if query.first() used
    • ๐Ÿ›  Fixed #91: document automatic "distinct" behaviour and also .without_distinct()
    • ๐Ÿ›  Fixed #92: without_distinct() and first() do not work together correctly

    ๐Ÿ†• New features

    • size and unsigned options for int attributes link

    ๐Ÿ—„ Since the long type has gone in Python 3, the long type is deprecated in Pony now. Instead of long you should use the int type and specify the size option:

        class MyEntity(db.Entity):
            attr1 = Required(long) # deprecated
            attr2 = Required(int, size=64) # new way for using BIGINT type in the database