diff --git a/src/core/models/DatabaseModel.php b/src/core/models/DatabaseModel.php index 3eb0a09323fd2df6e9d13cdef942687aa04ef980..f80d714e3ea1ac2472833f70dc3f34a9d98358cb 100644 --- a/src/core/models/DatabaseModel.php +++ b/src/core/models/DatabaseModel.php @@ -200,8 +200,12 @@ class DatabaseModel $querySet = []; $dataSet = []; foreach ($args['set'] as $key => $value) { - $querySet[] = "{$key} = ?"; - $dataSet[] = $value; + if ($value == 'SYSDATE' || $value == 'CURRENT_TIMESTAMP') { + $querySet[] = "{$key} = {$value}"; + } else { + $querySet[] = "{$key} = ?"; + $dataSet[] = $value; + } } $args['data'] = array_merge($dataSet, $args['data']); $set = implode(', ', $querySet);