| @@ 192-201 (lines=10) @@ | ||
| 189 | $query->sql($parameters)); |
|
| 190 | } |
|
| 191 | ||
| 192 | public function testNullLimit() { |
|
| 193 | $query = new SQLQuery(); |
|
| 194 | $query->setFrom("MyTable"); |
|
| 195 | $query->setLimit(null); |
|
| 196 | ||
| 197 | $this->assertSQLEquals( |
|
| 198 | 'SELECT * FROM MyTable', |
|
| 199 | $query->sql($parameters) |
|
| 200 | ); |
|
| 201 | } |
|
| 202 | ||
| 203 | public function testZeroLimit() { |
|
| 204 | $query = new SQLQuery(); |
|
| @@ 203-212 (lines=10) @@ | ||
| 200 | ); |
|
| 201 | } |
|
| 202 | ||
| 203 | public function testZeroLimit() { |
|
| 204 | $query = new SQLQuery(); |
|
| 205 | $query->setFrom("MyTable"); |
|
| 206 | $query->setLimit(0); |
|
| 207 | ||
| 208 | $this->assertSQLEquals( |
|
| 209 | 'SELECT * FROM MyTable', |
|
| 210 | $query->sql($parameters) |
|
| 211 | ); |
|
| 212 | } |
|
| 213 | ||
| 214 | public function testZeroLimitWithOffset() { |
|
| 215 | if(!(DB::get_conn() instanceof MySQLDatabase || DB::get_conn() instanceof SQLite3Database |
|