mirror of
https://github.com/dg/dibi.git
synced 2025-08-16 11:04:43 +02:00
This commit is contained in:
committed by
David Grudl
parent
9189d56c05
commit
d6826d62ed
@@ -74,3 +74,15 @@ WHERE
|
||||
%if', FALSE, 'AND [admin]=1 %end
|
||||
%else 1 LIMIT 10 %end'
|
||||
));
|
||||
|
||||
|
||||
// limit & offset
|
||||
Assert::same(
|
||||
'SELECT * FROM foo /* (limit 3) (offset 5) */',
|
||||
$conn->translate(
|
||||
'SELECT * FROM foo',
|
||||
'%if', FALSE,
|
||||
'%lmt', 3,
|
||||
'%ofs', 5,
|
||||
'%end'
|
||||
));
|
||||
|
Reference in New Issue
Block a user