Changeset 3956
- Timestamp:
- 03/09/08 02:02:16 (16 months ago)
- Location:
- branches/0.10
- Files:
-
- 2 modified
-
lib/Doctrine/Query.php (modified) (1 diff)
-
tests/DataType/EnumTestCase.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Query.php
r3947 r3956 503 503 $fields = $this->_pendingFields[$componentAlias]; 504 504 505 506 505 // check for wildcards 507 506 if (in_array('*', $fields)) { -
branches/0.10/tests/DataType/EnumTestCase.php
r3884 r3956 74 74 $query = new Doctrine_Query($this->connection); 75 75 $query->update('EnumTest2 u') 76 ->set('u.status', '?', 'verified') 77 ->execute(); 76 ->set('u.status', '?', 'verified'); 77 78 $this->assertEqual($query->getSql(), 'UPDATE enum_test2 SET status = ?'); 79 80 $query->execute(); 78 81 79 82 try { … … 99 102 try { 100 103 $query = new Doctrine_Query($this->connection); 101 $ret = $query->parseQuery("FROM EnumTest WHERE EnumTest.status = 'open'")104 $ret = $query->parseQuery("FROM EnumTest WHERE EnumTest.status = ?") 102 105 ->count(array('open')); 103 106 $this->assertEqual($ret, 1); … … 105 108 $this->fail(); 106 109 } 107 108 109 110 } 110 111