Describe the bug
When trying to limit a select query, and using an offset, the limit is just left off the query entirely.
Information
Version of Medoo: 1.6
Type of Database (MySQL, MSSQL, SQLite...): PostgreSQL 10
System (Liunx\Windows\Mac): Linux (Ubuntu 18.04 is executing the php code. The db server is on CentOS 7 with the official PostgreSQL yum repo enabled.)
Never mind. If found some code before my select call if(empty($offset)) can evaluate to true when $offset = 0... Inside that if statement, I was selecting all rows.
Describe the bug When trying to limit a select query, and using an offset, the limit is just left off the query entirely.
Information
Detail Code
$this->db
is fromnew Medoo(...);
.Using xdebug, I can tell the sql statement is:
Expected output I expect a result with 100, or fewer, results.
The query should have looked like:
What I get is all 1.8 million rows in my database table.