/** * @depends testexecUpdate */ public function testexec(SequoiaDB $sdb) { $sdb->execSQL("list collections"); $array = $sdb->getError(); $this->assertEquals(0, $array['errno']); $sdb->execSQL("select * from cs_test.cl_test"); $array = $sdb->getError(); $this->assertEquals(0, $array['errno']); $sdb->execSQL("list collectionspaces"); $array = $sdb->getError(); $this->assertEquals(0, $array['errno']); $sdb->execSQL("select age,count(name) as Ô±¹¤×ÜÊý from cs_test.cl_test group by age "); $array = $sdb->getError(); $this->assertEquals(0, $array['errno']); $sdb->execSQL("select * from cs_test.cl_test order by age desc"); $array = $sdb->getError(); $this->assertEquals(0, $array['errno']); $sdb->execSQL("select * from cs_test.cl_test limit 5"); $array = $sdb->getError(); $this->assertEquals(0, $array['errno']); $sdb->execSQL("select * from cs_test.cl_test offset 5"); $array = $sdb->getError(); $this->assertEquals(0, $array['errno']); }