Changeset 22616


Ignore:
Timestamp:
2013/03/08 18:29:07 (6 years ago)
Author:
tao
Message:

#2177 fixed ブログの通りに修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/helper/SC_Helper_Session.php

    r22567 r22616  
    139139        // MAX_LIFETIME以上更新されていないセッションを削除する。 
    140140        $objQuery =& SC_Query_Ex::getSingletonInstance(); 
    141         $where = "update_date < current_timestamp + '-". MAX_LIFETIME . " secs'"; 
     141        if(DB_TYPE == "pgsql"){ 
     142            $where = "update_date < current_timestamp + '-". MAX_LIFETIME . " secs'"; 
     143        }else{ 
     144            $where = "update_date < current_timestamp + interval -". MAX_LIFETIME . " second"; 
     145        } 
    142146        $objQuery->delete('dtb_session', $where); 
    143147        return true; 
Note: See TracChangeset for help on using the changeset viewer.