File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 37
37
- Enh #306 : Minor refactoring (@Tigrov )
38
38
- New #307 : Add parameters ` $ifExists ` and ` $cascade ` to ` CommandInterface::dropTable() ` and
39
39
` DDLQueryBuilderInterface::dropTable() ` methods (@vjik )
40
+ - Chg #310 : Remove usage of ` hasLimit() ` and ` hasOffset() ` methods of ` DQLQueryBuilder ` class (@Tigrov )
40
41
41
42
## 1.3.0 March 21, 2024
42
43
Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ public function buildOrderByAndLimit(
36
36
37
37
$ filters = [];
38
38
39
- if ($ this -> hasOffset ($ offset )) {
39
+ if (! empty ($ offset )) {
40
40
$ filters [] = 'rowNumId > ' .
41
- ($ offset instanceof ExpressionInterface ? $ this ->buildExpression ($ offset ) : (string )$ offset );
41
+ ($ offset instanceof ExpressionInterface ? $ this ->buildExpression ($ offset ) : (string ) $ offset );
42
42
}
43
43
44
- if ($ this -> hasLimit ( $ limit) ) {
44
+ if ($ limit !== null ) {
45
45
$ filters [] = 'rownum <= ' .
46
- ($ limit instanceof ExpressionInterface ? $ this ->buildExpression ($ limit ) : (string )$ limit );
46
+ ($ limit instanceof ExpressionInterface ? $ this ->buildExpression ($ limit ) : (string ) $ limit );
47
47
}
48
48
49
49
if (empty ($ filters )) {
You can’t perform that action at this time.
0 commit comments