次のようなクエリを取得するために、Zendライブラリを拡張しようとしています。
SELECT * FROM item i **force index(ix)** ORDER BY date LIMIT 100;
私はこのZendフォーラムの問題解決策に取り組んでいます:http://framework.zend.com/issues/browse/ZF-7570
しかし、私には問題があります。以下のコードを見てください。
$select->forceIndex('index');
echo $select->assemble();
// I get the right SELECT query with the force index hint
$this->fecthAll($select);
// The server execute a wrong SELECT query without the force index hint
手助け?