diff --git a/Database/SybaseConnection.php b/Database/SybaseConnection.php index 846424d..b6c451d 100644 --- a/Database/SybaseConnection.php +++ b/Database/SybaseConnection.php @@ -418,7 +418,8 @@ public function compileOffset($offset, $query, $bindings = array(), $me) ." ORDER BY #tmpTable.idTmp ASC")->fetchAll($me->getFetchMode()); } - } + } + private function queryStringForIdentity($from) { $explicitDB = explode('..', $from); @@ -461,11 +462,13 @@ public function select($query, $bindings = array(), $useReadPdo = true) if ($me->pretending()) { return array(); } + if ($this->queryGrammar->getBuilder() != NULL) { $offset = $this->queryGrammar->getBuilder()->offset; } else { $offset = 0; } + if ($offset > 0) { return $this->compileOffset($offset, $query, $bindings, $me); } else {