Changeset 18811


Ignore:
Timestamp:
2010/09/19 18:57:08 (10 years ago)
Author:
Seasoft
Message:

#565(SC_DbConn クラスの削除)

  • SC_Query#execute でのエラー時にも SQL を出力するように改善。
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_Query.php

    r18802 r18811  
    779779        $affected =& $sth->execute($arrVal); 
    780780        if (PEAR::isError($affected)) { 
     781            $sql = isset($sth->query) ? $sth->query : ''; 
    781782            if (!$this->force_run) { 
    782                 trigger_error($this->traceError($affected), E_USER_ERROR); 
     783                trigger_error($this->traceError($affected, $sql), E_USER_ERROR); 
    783784            } else { 
    784                 error_log($this->traceError($affected), 3, LOG_PATH); 
     785                error_log($this->traceError($affected, $sql), 3, LOG_PATH); 
    785786            } 
    786787        } 
Note: See TracChangeset for help on using the changeset viewer.