Changes between Version 2 and Version 3 of Ticket #36064, comment 4


Ignore:
Timestamp:
Jan 7, 2025, 2:49:08 AM (35 hours ago)
Author:
Csirmaz Bendegúz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36064, comment 4

    v2 v3  
    1313# 1. Model.id has a default
    1414foo = Model(id=1)
    15 foo.save(). # INSERT
     15foo.save() # INSERT
    1616bar = Model(id=1)
    17 bar.save(). # INSERT & IntegrityError
     17bar.save() # INSERT & IntegrityError
    1818
    1919# 2. Model.id doesn't have a default
    2020foo = Model(id=1)
    21 foo.save(). # UPDATE & INSERT
     21foo.save() # UPDATE & INSERT
    2222bar = Model(id=1)
    23 bar.save(). # UPDATE
     23bar.save() # UPDATE
    2424}}}
Back to Top