Ejemplo n.º 1
0
function cubrid_mysql_move_cursor($result, $offset)
{
    return cubrid_move_cursor($result, $offset);
}
Ejemplo n.º 2
0
 public function testCubridMoveCursor3()
 {
     if (OUTPUT_FUNCTION_NAME == true) {
         echo "\r\nRunning: " . __FUNCTION__ . " = ";
     }
     $this->sql = "create table test1 (id int, name varchar(30))";
     cubrid_execute($this->con, $this->sql);
     $this->sql = "insert into test1 values(1, 'test')";
     $this->req = cubrid_execute($this->con, $this->sql);
     $this->sql = "insert into test1 values(2, 'cj')";
     $this->req = cubrid_execute($this->con, $this->sql);
     $this->sql = "insert into test1 values(3, 'gnuser')";
     $this->req = cubrid_execute($this->con, $this->sql);
     $this->sql = "insert into test1 values(4, 'test1')";
     $this->req = cubrid_execute($this->con, $this->sql);
     $this->sql = "select * from test1";
     try {
         $this->req = cubrid_execute($this->con, $this->sql);
         $res = cubrid_move_cursor($this->req);
     } catch (Exception $e) {
         //echo cubrid_error_code();
         $this->assertTrue(TRUE);
     }
     try {
         $this->req = cubrid_execute($this->con, $this->sql);
         $res = cubrid_move_cursor($this->con, 1);
     } catch (Exception $e) {
         $this->assertTrue(TRUE);
         //echo $e->getMessage();
     }
 }