2009年4月1日星期三

[fw-db] select->from($table...) has a different schema from the default db adapter's

$tableObj = new $table;
$select = $tableObj->select();
$select = $select->from($table, array("$attributeName"))
->where("$attributeId = '$id'");

However, $table->_schema is different from default db set in the default db
adapter.
How can we force the generated SELECT statements to have schemas prepended
to their table names?

--
View this message in context: http://www.nabble.com/select-%3Efrom%28%24table...%29-has-a-different-schema-from-the-default-db-adapter%27s-tp22829446p22829446.html
Sent from the Zend DB mailing list archive at Nabble.com.

没有评论: