Changeset 18777 for branches/version-2_5-dev/data/class/db
- Timestamp:
- 2010/08/06 14:52:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/db/dbfactory/SC_DB_DBFactory_MYSQL.php
r18775 r18777 70 70 return $sql; 71 71 } 72 72 73 73 /** 74 74 * 文字コード情報を取得する … … 81 81 return $arrRet; 82 82 } 83 83 84 84 /** 85 85 * テーブルの存在チェックを行う SQL 文を返す. … … 180 180 */ 181 181 function sfChangeView($sql){ 182 182 183 183 $arrViewTmp = $this->viewToSubQuery(); 184 184 185 185 // viewのwhereを変換 186 186 foreach($arrViewTmp as $key => $val){ 187 187 $arrViewTmp[$key] = strtr($arrViewTmp[$key], $this->getWhereConverter()); 188 188 } 189 189 190 190 // viewを変換 191 191 $changesql = strtr($sql, $arrViewTmp); 192 192 193 193 return $changesql; 194 194 } … … 229 229 return $changesql; 230 230 } 231 231 232 232 /** 233 233 * WHERE 句置換用の配列を返す. … … 385 385 dtb_products.update_date, 386 386 dtb_products.deliv_date_id, 387 dtb_products.down, 388 dtb_products.down_filename, 389 dtb_products.down_realfilename, 387 390 T4.product_code_min, 388 391 T4.product_code_max, … … 467 470 ON T1.category_id = T2.category_id) 468 471 __EOS__; 472 473 $sql['vw_download_class'] = <<< __EOS__ 474 (SELECT p.product_id AS product_id, p.down_realfilename AS down_realfilename , p.down_filename AS down_filename, od.order_id AS order_id, o.customer_id AS customer_id, o.commit_date AS commit_date, o.status AS status FROM 475 dtb_products p, dtb_order_detail od, dtb_order o 476 WHERE p.product_id = od.product_id AND od.order_id = o.order_id) 477 __EOS__; 469 478 } 470 479
Note: See TracChangeset
for help on using the changeset viewer.
