Fix issue where no OFFSET is set when passing an integer to limit() #50

Merged
vlw merged 1 commit from refs/pull/50/head into master 2025-07-17 11:09:03 +02:00
vlw commented 2025-07-17 11:05:26 +02:00 (Migrated from codeberg.org)

This PR just sets the OFFSET value to 0 if no offset is provided for all calls to limit(). This fixes a bug where no OFFSET was set if the $limit parameter was given an integer.. which was the only allowed type except null anyways.

This PR just sets the `OFFSET` value to `0` if no offset is provided for all calls to `limit()`. This fixes a bug where no `OFFSET` was set if the `$limit` parameter was given an integer.. which was the only allowed type except null anyways.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/php-mysql!50
No description provided.