You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->getPdo()->query(str_replace(" from ", " into #tmpPaginate from ", $this->compileNewQuery($query, $bindings)));
402
+
$this->getPdo()->query("SELECT ".$res_primaries.", idTmp=identity(18) INTO #tmpTable FROM #tmpPaginate");
403
+
return$this->getPdo()->query("SELECT #tmpPaginate.*, #tmpTable.idTmp FROM #tmpTable INNER JOIN #tmpPaginate ON ".$where_primaries." WHERE #tmpTable.idTmp "
404
+
. "BETWEEN ".($offset+1) ." AND ". ($offset+$limit)
405
+
." ORDER BY #tmpTable.idTmp ASC")->fetchAll($me->getFetchMode());
406
+
375
407
}
376
-
377
-
//Offset operation
378
-
$this->getPdo()->query(str_replace(" from ", " into #tmpPaginate from ", $this->compileNewQuery($query, $bindings)));
379
-
$this->getPdo()->query("SELECT ".$res_primaries.", idTmp=identity(18) INTO #tmpTable FROM #tmpPaginate");
380
-
return$this->getPdo()->query("SELECT #tmpPaginate.*, #tmpTable.idTmp FROM #tmpTable INNER JOIN #tmpPaginate ON ".$where_primaries." WHERE #tmpTable.idTmp "
381
-
. "BETWEEN ".($offset+1) ." AND ". ($offset+$limit)
382
-
." ORDER BY #tmpTable.idTmp ASC")->fetchAll($me->getFetchMode());
383
-
384
-
}
385
-
408
+
}
386
409
privatefunctionqueryStringForIdentity($from)
387
410
{
388
411
$explicitDB = explode('..', $from);
@@ -425,13 +448,11 @@ public function select($query, $bindings = array(), $useReadPdo = true)
0 commit comments