< TIMESTAMP: Setting System Setting   (Previous) Table of Contents (Next)   TIMESTAMP: Setting Query Format >

TIMESTAMP: Executing System Setting

/**
 * Executes the SQL query needed to modify this DBMS's timestamp format
 * setting
 *
 * @param   object   $db   the PEAR DB object you're using
 * @return  bool     true if no problems happen or a query doesn't
 *                    need execution
 */
function executeTimestampSettingQuery($db) {
    if (!$this->TimestampSettingQuery) {
        return true;
    }
    $res = $db->query($this->TimestampSettingQuery);
    if (DB::isError($res)) {
        if ($db->getOption('debug') >= 2) {
            die($res->getUserInfo());
        } else {
            die($res->getMessage());
        }
    }
    return true;
}