...這種情況很常發生,不知如何解決 Thanks 1. XSDatabase::query1 query1() 方法 public 查询结果首行, query1(string $sql) $sql string {return} 查询结果[b]首行, 失败或无数据[/b]则返回 false 源码: sdk/php/util/XSDataSource.class.php#L450 (显示) public functi...
...ePDO->query('select LIMIT 1') #1 XSDataSource.class.php(213): XSDatabase->query1('select') #2 XSDataSource.class.php(33): XSDatabaseDataSource->init() [hr] --sql="select * from sj_union " --project=demo
...ePDO->query('select LIMIT 1') #1 XSDataSource.class.php(213): XSDatabase->query1('select') #2 XSDataSource.class.php(33): XSDatabaseDataSource->init() [hr] --sql="select * from sj_union " --project=demo
...'SELECT COUNT(*) AS count FROM ', $sql); 206 $res = $this->db->query1($sql); 207 $this->limit = $res['count'] - $this->offset; 208 }
...->query('SELECT COUNT(*)...') #1 XSDataSource.class.php(213): XSDatabase->query1('SELECT COUNT(*)...') #2 XSDataSource.class.php(33): XSDatabaseDataSource->init() #3 XSDataSource.class.php(48): XSDataSource->__construct('mysql://xxx', 'SELECT a.id,a.t...') #4 Indexer.php(206): XSDataSource::inst...