fix(picodb): do not include useless OFFSET 0 clauses
throws an error on MSSQL
This commit is contained in:
parent
0b8a270bbb
commit
bff5c15544
|
|
@ -593,7 +593,7 @@ class Table
|
|||
*/
|
||||
public function offset($value)
|
||||
{
|
||||
if (! is_null($value)) {
|
||||
if (! is_null($value) && is_int($value) && $value > 0) {
|
||||
$this->sqlOffset = ' OFFSET '.(int) $value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue