Skip to content

Commit

Permalink
Update to use TIME & DATE types (#1250)
Browse files Browse the repository at this point in the history
Previously these used DATETIME, but then propel tried to insert just a date or time into the database, resulting in a error "[S0001][241] Conversion failed when converting date and/or time from character string."
  • Loading branch information
mhaisley authored and marcj committed Oct 5, 2016
1 parent f42493f commit 4641d27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Propel/Generator/Platform/MssqlPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ protected function initialize()
$this->setSchemaDomainMapping(new Domain(PropelTypes::DOUBLE, "FLOAT"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::LONGVARCHAR, "VARCHAR(MAX)"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::CLOB, "VARCHAR(MAX)"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATETIME"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::BU_DATE, "DATETIME"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, "DATETIME"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::DATE, "DATE"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::BU_DATE, "DATE"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::TIME, "TIME"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::TIMESTAMP, "DATETIME"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::BU_TIMESTAMP, "DATETIME"));
$this->setSchemaDomainMapping(new Domain(PropelTypes::BINARY, "BINARY(7132)"));
Expand Down

0 comments on commit 4641d27

Please sign in to comment.