本文整理汇总了PHP中cubrid_data_seek函数的典型用法代码示例。如果您正苦于以下问题:PHP cubrid_data_seek函数的具体用法?PHP cubrid_data_seek怎么用?PHP cubrid_data_seek使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了cubrid_data_seek函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cubrid_mysql_data_seek
function cubrid_mysql_data_seek($result, $row_number)
{
return cubrid_data_seek($result, $row_number);
}
示例2: _data_seek
/**
* Data Seek
*
* Moves the internal pointer to the desired offset. We call
* this internally before fetching results to make sure the
* result set starts at zero
*
* @access private
* @return array
*/
function _data_seek($n = 0)
{
return cubrid_data_seek($this->result_id, $n);
}
示例3: testCubridDataSeek3
/**
* @group arnia-wrong-parameters
*/
public function testCubridDataSeek3()
{
if (OUTPUT_FUNCTION_NAME == true) {
echo "\r\nRunning: " . __FUNCTION__ . " = ";
}
try {
$this->assertTrue($this->createTestTable(), "Failed to create the test table.");
$this->sql = "SELECT * FROM test_table";
$this->req = cubrid_execute($this->con, $this->sql);
$val = cubrid_data_seek($this->req, -1);
$this->assertTrue(FALSE, "Expected Exception not thrown.");
} catch (Exception $e) {
//echo $e->getMessage()."\r\n";
$this->assertEquals(0, cubrid_error_code());
$this->assertEquals(0, cubrid_error_code_facility());
$this->assertEquals('', cubrid_error_msg());
}
$this->deleteTestTable();
}