Skip to content
Snippets Groups Projects
Commit 02eab12b authored by Omar Mohamad - El Hassan Lopesino's avatar Omar Mohamad - El Hassan Lopesino Committed by Aaron Bauman
Browse files

Issue #3408393 by omarlopesino: Add OFFSET clause to SalesforceSelectQuery [D8 or higher]

parent 79e67e9e
No related branches found
No related tags found
No related merge requests found
Pipeline #85502 passed with warnings
...@@ -44,6 +44,13 @@ class SelectQuery implements SelectQueryInterface { ...@@ -44,6 +44,13 @@ class SelectQuery implements SelectQueryInterface {
*/ */
public $conditions = []; public $conditions = [];
/**
* Starting elements number for query result.
*
* @var int
*/
public $offset;
/** /**
* SelectQuery constructor. * SelectQuery constructor.
* *
...@@ -125,6 +132,10 @@ class SelectQuery implements SelectQueryInterface { ...@@ -125,6 +132,10 @@ class SelectQuery implements SelectQueryInterface {
$query .= "+LIMIT+" . (int) $this->limit; $query .= "+LIMIT+" . (int) $this->limit;
} }
if ($this->offset) {
$query .= "+OFFSET+" . (int) $this->offset;
}
return $query; return $query;
} }
// @codingStandardsIgnoreEnd // @codingStandardsIgnoreEnd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment