Changeset 408


Ignore:
Timestamp:
13.06.2006 18:18:43 (4 years ago)
Author:
hans
Message:

#278 - Changing MysqliPlatform to use DATETIME (inherited from MysqlPlatform) instead of TIMESTAMP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.2/generator/classes/propel/engine/platform/MysqliPlatform.php

    r325 r408  
    3737    { 
    3838        parent::initialize(); 
    39  
    40                 // set these back to the SQL standard, since newer MySQL doesn't have a weird 
    41                 // meaning for TIMESTAMP 
    42         $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "TIMESTAMP")); 
    43         $this->setSchemaDomainMapping(new Domain(PropelTypes::BU_TIMESTAMP, "TIMESTAMP")); 
     39         
     40                // HL -- commenting these out, as it turns out that while the date format is fixed 
     41                // there is still a special meaning to TIMESTAMP in MySQL 4.1+  
     42        // $this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "TIMESTAMP")); 
     43        // $this->setSchemaDomainMapping(new Domain(PropelTypes::BU_TIMESTAMP, "TIMESTAMP")); 
    4444    } 
    4545 
Note: See TracChangeset for help on using the changeset viewer.