- Bugfixes done linked to SearchRequest and Searchable features.
- Fixed a bug introduced into PdoObject exception on latest commit. - Corrected the open() close() enclosure of query condition.
This commit is contained in:
1 parent
f98cb2ded0
commit
84da4dbb7b
9 files changed
+111
-20
No files matched your search
+5
-1
@@ -19,8 +19,12 @@ class Limit extends Fragment {
|
||||
|
||||
public function render() : string
|
||||
{
|
||||
if ( $this->limit < 0 ) {
|
||||
throw new \Exception("An error occured trying to render the LIMIT fragment ; given value has to be > 0. Received {$this->limit}");
|
||||
}
|
||||
|
||||
return $this->renderSegments([
|
||||
sprintf($this->keyword, $this->limit)
|
||||
sprintf($this->keyword, abs($this->limit))
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,10 @@ class Offset extends Fragment {
|
||||
|
||||
public function render() : string
|
||||
{
|
||||
if ( $this->offset < 0 ) {
|
||||
throw new \Exception("An error occured trying to render the OFFSET fragment ; given value has to be > 0. Received {$this->offset}");
|
||||
}
|
||||
|
||||
return $this->renderSegments([
|
||||
'OFFSET', $this->offset,
|
||||
]);
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ class Where extends Fragment {
|
||||
public function render() : string
|
||||
{
|
||||
$stack = [];
|
||||
|
||||
|
||||
foreach ($this->conditionList ?? [] as $key => $item) {
|
||||
if ( $item instanceof Where ) {
|
||||
if ( $item->conditionList ?? false ) {
|
||||
|
||||
Reference in new issue
Block a user