Merge pull request #2144 from Jennydmz/BUG-13321
BUG-13321 PmTables: Confucion TIMESTAMP - DATETIME.
This commit is contained in:
@@ -108,8 +108,12 @@ class AdditionalTables extends BaseAdditionalTables
|
|||||||
$oDataset = FieldsPeer::doSelectRS($oCriteria);
|
$oDataset = FieldsPeer::doSelectRS($oCriteria);
|
||||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||||
|
|
||||||
while ($oDataset->next()) {
|
while ($oDataset->next()) {
|
||||||
$this->fields[] = $oDataset->getRow();
|
$auxField = $oDataset->getRow();
|
||||||
|
if ($auxField['FLD_TYPE'] == 'TIMESTAMP') {
|
||||||
|
$auxField['FLD_TYPE'] = 'DATETIME';
|
||||||
|
}
|
||||||
|
$this->fields[] = $auxField;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->fields;
|
return $this->fields;
|
||||||
|
|||||||
Reference in New Issue
Block a user