예제 #1
0
파일: QueryTest.php 프로젝트: voilab/acedao
 public function testEscapeTableNameInJoinClause()
 {
     $this->query->prepareConfig(array('from' => 'car c', 'join' => array('order o' => array('name' => 'Commandes'))));
     list($parts, $params) = $this->query->prepareSelect();
     $this->assertEquals($parts['leftjoin'][0], "LEFT JOIN `order` o ON c.id = o.car_id");
 }