Last active
December 15, 2015 14:08
-
-
Save freen/5272020 to your computer and use it in GitHub Desktop.
ZF2 Zend\Db\Sql should know (for the MySQL platform) that OFFSET has to follow LIMIT.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... | |
// This works: | |
$select->from($table) | |
->group('id') | |
->limit($limit) | |
->offset($offset); | |
// This produces a MySQL exception: | |
$select->from($table) | |
->group('id') | |
->offset($offset) | |
->limit($limit); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment