Convert from timestamp to datetime. Datetime is consistent between mysql 4.0x and newer

versions and is faster for date/time computations. Modify object creation methods to specify
any time fields that were previously updated with timestamp properties.
This commit is contained in:
Chris Morgan
2007-07-31 23:48:22 +00:00
committed by WineHQ
parent 8b7fdf606c
commit b94a2a392b
22 changed files with 96 additions and 81 deletions

View File

@@ -54,7 +54,8 @@ class Url {
/**
* Creates a new url.
*/
function create($sDescription = null, $sUrl = null, $iVersionId = null, $iAppId = null, $bSilent = false)
function create($sDescription = null, $sUrl = null, $iVersionId = null,
$iAppId = null, $bSilent = false)
{
global $aClean;
@@ -64,11 +65,11 @@ class Url {
$this->bQueued = true;
$hResult = query_parameters("INSERT INTO appData (appId, versionId, type,
description, queued, submitterId, url)
VALUES ('?', '?', '?', '?', '?', '?', '?')",
description, queued, submitTime, submitterId, url)
VALUES ('?', '?', '?', '?', '?', ?, '?', '?')",
$iAppId, $iVersionId, "url", $sDescription,
$this->bQueued ? "true" : "false",
$_SESSION['current']->iUserId, $sUrl);
"NOW()", $_SESSION['current']->iUserId, $sUrl);
if(!$hResult)
{