Changeset 22795


Ignore:
Timestamp:
2013/05/02 17:16:21 (8 years ago)
Author:
kimoto
Message:

#2213 バックアップ管理 プラグインのテーブルをバックアップできずエラーとなる

クオート文字がmysqlで不適切なので修正しました

Location:
branches/version-2_13-dev/data/class
Files:
2 edited

Legend:

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

    r22771 r22795  
    3030 * @version $Id$ 
    3131 */ 
    32 class SC_Query  
     32class SC_Query 
    3333{ 
    3434 
     
    774774    { 
    775775        if (strlen($where) <= 0) { 
    776             $sqlde = 'DELETE FROM "' . $table . '"'; 
     776            $sqlde = 'DELETE FROM ' . $this->conn->quoteIdentifier($table); 
    777777        } else { 
    778             $sqlde = 'DELETE FROM "' . $table . '" WHERE ' . $where; 
     778            $sqlde = 'DELETE FROM ' . $this->conn->quoteIdentifier($table) . ' WHERE ' . $where; 
    779779        } 
    780780        $ret = $this->query($sqlde, $arrWhereVal, false, null, MDB2_PREPARE_MANIP); 
  • branches/version-2_13-dev/data/class/pages/admin/system/LC_Page_Admin_System_Bkup.php

    r22771 r22795  
    3232 * @version $Id$ 
    3333 */ 
    34 class LC_Page_Admin_System_Bkup extends LC_Page_Admin_Ex  
     34class LC_Page_Admin_System_Bkup extends LC_Page_Admin_Ex 
    3535{ 
    3636 
     
    320320 
    321321            // 全データを取得 
    322             $sql = 'SELECT * FROM "' . $table . '"'; 
     322            $sql = 'SELECT * FROM ' . $objQuery->conn->quoteIdentifier($table); 
    323323 
    324324            $this->fpOutput =& $fp; 
Note: See TracChangeset for help on using the changeset viewer.