ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 10843


Ignore:
Timestamp:
Feb 24, 2009, 4:16:40 PM (12 years ago)
Author:
kiwa
Message:

#3210:r10842で対応が不十分だった部分を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/admin/lib/db_admin.php

    r10842 r10843  
    18961896    if ($GLOBALS['_OPENPNE_DSN_LIST']['main']['dsn']['phptype'] == 'pgsql') {
    18971897        $sql = "SELECT ((date_part('year', now()) - birth_year)- " .
    1898             "cast(to_char(CURRENT_DATE,'.....$')<(to_char(birth_month, '00') || '-' || to_char(birth_day, '00')) as int)) " .
     1898            "cast(to_char(to_char(CURRENT_DATE, 'MMDD')<(to_char(birth_month, '00') || '-' || to_char(birth_day, '00')) as int)) " .
    18991899            "AS age FROM c_member WHERE birth_year <> 0;";
    19001900    } else {
Note: See TracChangeset for help on using the changeset viewer.