• dlenev@brandersnatch.localdomain's avatar
    Support for TIMESTAMP columns holding NULL values. Unlike all other · 2511990c
    dlenev@brandersnatch.localdomain authored
    column types TIMESTAMP is NOT NULL by default, so in order to have 
    TIMESTAMP column holding NULL valaues you have to specify NULL as
    one of its attributes (this needed for backward compatibility).
    
    Main changes:
    Replaced TABLE::timestamp_default_now/on_update_now members with
    TABLE::timestamp_auto_set_type flag which is used everywhere
    for determining if we should auto-set value of TIMESTAMP field 
    during this operation or not. We are also use Field_timestamp::set_time()
    instead of handler::update_timestamp() in handlers.
    2511990c
handler.h 21.6 KB