我有一个ZF2项目,有两个扩展AbstractTableGateway的PosTable/TopTable模型。
我希望对这些表中的结果进行分页,因此我在这两个表中都有一个分页函数。
这是PosTable模型的外观:
...
class PosTable extends AbstractTableGateway {
public function __construct($adapter) {
$this->table = 'pos';
$this->adapter = $adapter;
}
...
public function getPosP
我在“custom_functions.php”中有一些自定义函数,这些函数是我从控制器调用的。
我的“custom_functions.php”代码类似于:
class Custom_functions extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model('model');
$this->load->library('session')
使用datastax驱动程序无法获得以下查询的结果,
select * from track where id='35209' and day in (20180314,20180315,20180316) and datetime < '2018-03-15 11:00:00' order by datetime desc limit 1;
错误消息:“分区键上的ORDER和IN限制不能同时分页查询;必须删除ORDER或IN和sort客户端,或者禁用此查询的分页。”
那么,如何在"executeAsync“时禁用分页?