Skip to content

Commit

Permalink
also do timestamp types
Browse files Browse the repository at this point in the history
  • Loading branch information
demeritcowboy committed Jul 17, 2021
1 parent 2866059 commit 92529aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DB/DataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ function update($dataObject = false)
// DATE is empty... on a col. that can be null..
// note: this may be usefull for time as well..
if (!$this->$k &&
(($v & DB_DATAOBJECT_DATE) || ($v & DB_DATAOBJECT_TIME)) &&
(($v & DB_DATAOBJECT_DATE) || ($v & DB_DATAOBJECT_TIME) || ($v & DB_DATAOBJECT_MYSQLTIMESTAMP)) &&
!($v & DB_DATAOBJECT_NOTNULL)) {

$settings .= "$kSql = NULL ";
Expand Down

0 comments on commit 92529aa

Please sign in to comment.