Changeset 5087
- Timestamp:
- 10/15/08 19:59:45 (9 months ago)
- Location:
- branches
- Files:
-
- 2 added
- 4 modified
-
1.0/lib/Doctrine/Query/Abstract.php (modified) (2 diffs)
-
1.0/tests/run.php (modified) (1 diff)
-
1.0/tests/Ticket/1558TestCase.php (added)
-
1.1/lib/Doctrine/Query/Abstract.php (modified) (2 diffs)
-
1.1/tests/run.php (modified) (1 diff)
-
1.1/tests/Ticket/1558TestCase.php (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/lib/Doctrine/Query/Abstract.php
r5077 r5087 1286 1286 public function andWhereIn($expr, $params = array(), $not = false) 1287 1287 { 1288 // if there's no params, return (else we'll get a WHERE IN (), invalid SQL) 1289 if ( ! count($params)) { 1290 return $this; 1291 } 1292 1288 1293 if ($this->_hasDqlQueryPart('where')) { 1289 1294 $this->_addDqlQueryPart('where', 'AND', true); … … 1304 1309 public function orWhereIn($expr, $params = array(), $not = false) 1305 1310 { 1311 // if there's no params, return (else we'll get a WHERE IN (), invalid SQL) 1312 if ( ! count($params)) { 1313 return $this; 1314 } 1315 1306 1316 if ($this->_hasDqlQueryPart('where')) { 1307 1317 $this->_addDqlQueryPart('where', 'OR', true); -
branches/1.0/tests/run.php
r5086 r5087 156 156 $tickets->addTestCase(new Doctrine_Ticket_1543_TestCase()); 157 157 $tickets->addTestCase(new Doctrine_Ticket_1545_TestCase()); 158 $tickets->addTestCase(new Doctrine_Ticket_1558_TestCase()); 158 159 $test->addTestCase($tickets); 159 160 -
branches/1.1/lib/Doctrine/Query/Abstract.php
r5074 r5087 1385 1385 public function andWhereIn($expr, $params = array(), $not = false) 1386 1386 { 1387 // if there's no params, return (else we'll get a WHERE IN (), invalid SQL) 1388 if ( ! count($params)) { 1389 return $this; 1390 } 1391 1387 1392 if ($this->_hasDqlQueryPart('where')) { 1388 1393 $this->_addDqlQueryPart('where', 'AND', true); … … 1403 1408 public function orWhereIn($expr, $params = array(), $not = false) 1404 1409 { 1410 // if there's no params, return (else we'll get a WHERE IN (), invalid SQL) 1411 if ( ! count($params)) { 1412 return $this; 1413 } 1414 1405 1415 if ($this->_hasDqlQueryPart('where')) { 1406 1416 $this->_addDqlQueryPart('where', 'OR', true); -
branches/1.1/tests/run.php
r5086 r5087 169 169 $tickets->addTestCase(new Doctrine_Ticket_1543_TestCase()); 170 170 $tickets->addTestCase(new Doctrine_Ticket_1545_TestCase()); 171 $tickets->addTestCase(new Doctrine_Ticket_1558_TestCase()); 171 172 $test->addTestCase($tickets); 172 173