示例#1
0
 public function testPrepare()
 {
     $stmp = $this->_db->prepare('SELECT * FROM users WHERE id=?');
     $this->assertEquals(get_class($stmp), 'Zend_Db_Statement_Pdo');
 }
示例#2
0
 /**
  *  Get shard conncetion by value
  *
  * @param string $value
  * @return Zend_Db_Adapter_Abstract
  */
 public function getShard($value)
 {
     return $this->_db->getShard($this->getShardName($value));
 }