Ticket #1467 (closed バグ指摘: 修正済)

Opened 9 years ago

Last modified 8 years ago

SC_Query#getSingletonInstance DB問い合わせ用パラメータの保持・初期化が不適当

Reported by: Seasoft Owned by: Seasoft
Priority: Milestone: EC-CUBE2.12.1
Component: その他 Version: 2.12.0
Keywords: Cc:
修正済み: yes

Description (last modified by Seasoft) (diff)

下記流れ(下記コードは抽象的なもの)で、ORDER句 や WHERE句 の DB エラーの発現があった。

$objQuery =& SC_Query_Ex::getSingletonInstance();
$objProduct = new SC_Product_Ex();

$arrProductsClass = $objProduct->getProductsClass($product_class_id);
$objQuery->select();

関連: #1857

r21903

Change History

comment:1 Changed 9 years ago by Seasoft

  • Description modified (diff)

comment:2 Changed 9 years ago by kotani

  • Milestone changed from EC-CUBE2.11.3 to EC-CUBE2.11.4(仮)

comment:3 Changed 9 years ago by kotani

  • Milestone changed from EC-CUBE2.11.5 to EC-CUBE2.12.0alpha

comment:4 Changed 8 years ago by Seasoft

  • Owner changed from somebody to Seasoft
  • Status changed from new to assigned
  • Version changed from 2.11.1 to 2.12.0
  • Description modified (diff)
  • Summary changed from SC_Query シングルトンの悪影響? to SC_Query#getSingletonInstance DB問い合わせ用パラメータの保持・初期化が不適当

2.12.0 で再現を確認。

comment:5 follow-up: ↓ 6 Changed 8 years ago by Seasoft

  • 修正済み set
  • Description modified (diff)

comment:6 in reply to: ↑ 5 Changed 8 years ago by h_yoshimoto

  • Status changed from assigned to closed
  • Resolution set to 修正済

Seasoft さまへの返信

こちらありがとうございます!

閉じさせて頂きます。

Note: See TracTickets for help on using tickets.