1
0
Fork 0
mirror of synced 2025-04-03 13:23:37 +03:00

added tests to get complete coverage of Transaction, RawSQL, AuditLog and Query/Having. Related refactorings. Added some getters to be able to test. Also added coverage report for these changes

This commit is contained in:
meus 2007-10-29 19:50:16 +00:00
parent 520f4a1056
commit 53b05c1d4a
24 changed files with 3410 additions and 3230 deletions

View file

@ -18,7 +18,9 @@
* and is licensed under the LGPL. For more information, see * and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>. * <http://www.phpdoctrine.com>.
*/ */
Doctrine::autoload("Doctrine_Connection_Common"); Doctrine::autoload("Doctrine_Connection_Common");
/** /**
* Doctrine_Connection_Sqlite * Doctrine_Connection_Sqlite
* *
@ -46,9 +48,7 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
*/ */
public function __construct(Doctrine_Manager $manager, $adapter) public function __construct(Doctrine_Manager $manager, $adapter)
{ {
$this->supported = array('sequences' => 'emulated',
$this->supported = array(
'sequences' => 'emulated',
'indexes' => true, 'indexes' => true,
'affected_rows' => true, 'affected_rows' => true,
'summary_functions' => true, 'summary_functions' => true,
@ -67,14 +67,7 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
'identifier_quoting' => true, 'identifier_quoting' => true,
'pattern_escaping' => false, 'pattern_escaping' => false,
); );
/** parent::__construct($manager, $adapter);
$this->options['base_transaction_name'] = '___php_Doctrine_sqlite_auto_commit_off';
$this->options['fixed_float'] = 0;
$this->options['database_path'] = '';
$this->options['database_extension'] = '';
$this->options['server_version'] = '';
*/
parent::__construct($manager, $adapter);
if ($this->isConnected) { if ($this->isConnected) {
$this->dbh->sqliteCreateFunction('mod', array('Doctrine_Expression_Sqlite', 'modImpl'), 2); $this->dbh->sqliteCreateFunction('mod', array('Doctrine_Expression_Sqlite', 'modImpl'), 2);
@ -114,4 +107,4 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
{ {
return $name . '.db'; return $name . '.db';
} }
} }

View file

@ -1267,4 +1267,14 @@ class Doctrine_Hydrate extends Doctrine_Locator_Injectable implements Serializab
{ {
return Doctrine_Lib::formatSql($this->getQuery()); return Doctrine_Lib::formatSql($this->getQuery());
} }
/**
* Return the parts
*
* @return array The parts
*/
public function getParts()
{
return $this->parts;
}
} }

View file

@ -109,4 +109,4 @@ abstract class Doctrine_Query_Condition extends Doctrine_Query_Part
return $value; return $value;
} }
} }

View file

@ -78,6 +78,7 @@ class Doctrine_Query_Having extends Doctrine_Query_Condition
} }
} }
/** /**
* load * load
* returns the parsed query part * returns the parsed query part
@ -87,17 +88,11 @@ class Doctrine_Query_Having extends Doctrine_Query_Condition
*/ */
final public function load($having) final public function load($having)
{ {
$e = Doctrine_Tokenizer::bracketExplode($having, ' ', '(', ')'); $tokens = Doctrine_Tokenizer::bracketExplode($having, ' ', '(', ')');
$part = $this->parseAggregateFunction(array_shift($tokens));
$r = array_shift($e); $operator = array_shift($tokens);
$t = explode('(', $r); $value = implode(' ', $tokens);
$part .= ' ' . $operator . ' ' . $value;
$count = count($t); return $part;
$r = $this->parseAggregateFunction($r);
$operator = array_shift($e);
$value = implode(' ', $e);
$r .= ' ' . $operator . ' ' . $value;
return $r;
} }
} }

View file

@ -52,4 +52,4 @@ abstract class Doctrine_Query_Part
{ {
return $this->query; return $this->query;
} }
} }

View file

@ -51,20 +51,31 @@ class Doctrine_RawSql extends Doctrine_Query_Abstract
public function parseQueryPart($queryPartName, $queryPart, $append = false) public function parseQueryPart($queryPartName, $queryPart, $append = false)
{ {
if ($queryPartName == 'select') { if ($queryPartName == 'select') {
preg_match_all('/{([^}{]*)}/U', $queryPart, $m); $this->parseSelectFields($queryPart);
return $this;
}
if( ! isset($this->parts[$queryPartName])) {
$this->parts[$queryPartName] = array();
}
$this->fields = $m[1]; if (! $append) {
$this->parts['select'] = array(); $this->parts[$queryPartName] = array($queryPart);
} else { }else {
if ( ! $append) { $this->parts[$queryPartName][] = $queryPart;
$this->parts[$queryPartName] = array($queryPart);
} else {
$this->parts[$queryPartName][] = $queryPart;
}
} }
return $this; return $this;
} }
/**
* Add select parts to fields
*
* @param $queryPart sting The name of the querypart
*/
private function parseSelectFields($queryPart){
preg_match_all('/{([^}{]*)}/U', $queryPart, $m);
$this->fields = $m[1];
$this->parts['select'] = array();
}
/** /**
* parseQuery * parseQuery
* parses an sql query and adds the parts to internal array * parses an sql query and adds the parts to internal array
@ -74,46 +85,48 @@ class Doctrine_RawSql extends Doctrine_Query_Abstract
*/ */
public function parseQuery($query) public function parseQuery($query)
{ {
preg_match_all('/{([^}{]*)}/U', $query, $m); $this->parseSelectFields($query);
$this->fields = $m[1];
$this->clear(); $this->clear();
$e = Doctrine_Tokenizer::sqlExplode($query,' '); $tokens = Doctrine_Tokenizer::sqlExplode($query,' ');
foreach ($e as $k => $part) { $parts = array();
$low = strtolower($part); foreach ($tokens as $key => $part) {
switch (strtolower($part)) { $partLowerCase = strtolower($part);
switch ($partLowerCase) {
case 'select': case 'select':
case 'from': case 'from':
case 'where': case 'where':
case 'limit': case 'limit':
case 'offset': case 'offset':
case 'having': case 'having':
$p = $low; $type = $partLowerCase;
if ( ! isset($parts[$low])) { if ( ! isset($parts[$partLowerCase])) {
$parts[$low] = array(); $parts[$partLowerCase] = array();
} }
break; break;
case 'order': case 'order':
case 'group': case 'group':
$i = ($k + 1); $i = $key + 1;
if (isset($e[$i]) && strtolower($e[$i]) === 'by') { if (isset($tokens[$i]) && strtolower($tokens[$i]) === 'by') {
$p = $low; $type = $partLowerCase . 'by';
$p .= 'by'; $parts[$type] = array();
$parts[$low . 'by'] = array();
} else { } else {
$parts[$p][] = $part; //not a keyword so we add it to the previous type
$parts[$type][] = $part;
} }
break; break;
case 'by': case 'by':
continue; continue;
default: default:
if ( ! isset($parts[$p][0])) { //not a keyword so we add it to the previous type.
$parts[$p][0] = $part; if ( ! isset($parts[$type][0])) {
$parts[$type][0] = $part;
} else { } else {
$parts[$p][0] .= ' '.$part; // why does this add to index 0 and not append to the
// array. If it had done that one could have used
// parseQueryPart.
$parts[$type][0] .= ' '.$part;
} }
} }
} }
@ -283,4 +296,4 @@ class Doctrine_RawSql extends Doctrine_Query_Abstract
return $this; return $this;
} }
} }

View file

@ -319,4 +319,4 @@ class Doctrine_Tokenizer
return $term; return $term;
} }
} }

View file

@ -125,6 +125,16 @@ class Doctrine_Transaction extends Doctrine_Connection_Module
return true; return true;
} }
/**
* Return the invalid records
*
* @return array An array of invalid records
*/
public function getInvalid(){
return $this->invalid;
}
/** /**
* getTransactionLevel * getTransactionLevel
* get the current transaction nesting level * get the current transaction nesting level
@ -436,4 +446,4 @@ class Doctrine_Transaction extends Doctrine_Connection_Module
{ {
throw new Doctrine_Transaction_Exception('Fetching transaction isolation level not supported by this driver.'); throw new Doctrine_Transaction_Exception('Fetching transaction isolation level not supported by this driver.');
} }
} }

View file

@ -90,4 +90,12 @@ class Doctrine_AuditLog_TestCase extends Doctrine_UnitTestCase
$this->pass(); $this->pass();
} }
} }
public function testReturnFalseIfVersionTableExists()
{
$entity = new VersioningTest();
$entity_table = $entity->getTable();
$auditLog = new Doctrine_AuditLog(array("table" => $entity_table));
$this->assertFalse($auditLog->buildDefinition($entity_table));
}
} }

View file

@ -56,4 +56,12 @@ class Doctrine_Query_Having_TestCase extends Doctrine_UnitTestCase
$q->parseQuery("SELECT CONCAT(u.name, u.loginname) name FROM User u LEFT JOIN u.Phonenumber p HAVING name = 'xx'"); $q->parseQuery("SELECT CONCAT(u.name, u.loginname) name FROM User u LEFT JOIN u.Phonenumber p HAVING name = 'xx'");
} }
public function testReturnFuncIfNumeric()
{
$having = new Doctrine_Query_Having("test");
$part = $having->load("1");
$this->assertEqual("1",trim($part));
}
} }

View file

@ -33,7 +33,6 @@
*/ */
class Doctrine_RawSql_TestCase extends Doctrine_UnitTestCase class Doctrine_RawSql_TestCase extends Doctrine_UnitTestCase
{ {
public function testQueryParser() public function testQueryParser()
{ {
$sql = 'SELECT {p.*} FROM photos p'; $sql = 'SELECT {p.*} FROM photos p';
@ -248,4 +247,47 @@ class Doctrine_RawSql_TestCase extends Doctrine_UnitTestCase
$this->assertEqual(count($coll), 3); $this->assertEqual(count($coll), 3);
} }
public function testParseQueryPartShouldAddPartIfNotSelectAndAppend()
{
$query = new Doctrine_Rawsql();
$query->parseQueryPart("test", "test", true);
$parts = $query->getParts();
$this->assertTrue(isset($parts["test"]));
$this->assertTrue(is_array($parts["test"]));
$this->assertTrue(isset($parts["test"][0]));
$this->assertEqual("test", $parts["test"][0]);
}
public function testParseQueryShouldExtractGroupBy()
{
$query = new Doctrine_RawSql();
$query->parseQuery("having group");
$parts = $query->getParts();
$this->assertEqual($parts["having"][0], "group");
}
public function testThrowExceptionIfFieldNameIsOnWrongForm()
{
$query = new Doctrine_RawSql();
$query->parseQueryPart("select", "{test}");
try{
$query->getQuery();
$this->fail("Should throw exception");
}catch(Doctrine_RawSql_Exception $exception){
$this->assertEqual($exception->getMessage(), "All selected fields in Sql query must be in format tableAlias.fieldName");
}
}
public function testThrowExceptionIfAliasDoesNotExist()
{
$query = new Doctrine_RawSql();
$query->parseQueryPart("select", "{test.test}");
try{
$query->getQuery();
$this->fail("Should throw exception");
}catch(Doctrine_RawSql_Exception $exception){
$this->assertEqual($exception->getMessage(), "The associated component for table alias test couldn't be found.");
}
}
} }

View file

@ -224,6 +224,15 @@ class Doctrine_Transaction_TestCase extends Doctrine_UnitTestCase
$this->assertTrue($phonenumber->id > 0); $this->assertTrue($phonenumber->id > 0);
} }
public function testAddDuplicateRecordToTransactionShouldSkipSecond(){
$transaction = new Doctrine_Transaction();
$user = new User();
$transaction->addInvalid($user);
$this->assertEqual(1, count($transaction->getInvalid()));
$transaction->addInvalid($user);
$this->assertEqual(1, count($transaction->getInvalid()));
}
} }
class TransactionListener extends Doctrine_EventListener class TransactionListener extends Doctrine_EventListener
{ {

View file

@ -247,7 +247,7 @@
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(class_exists($className))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(class_exists($className))&nbsp;{
</td></tr> </td></tr>
<tr><td>80</td> <tr><td>80</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;
</td></tr> </td></tr>
<tr><td>81</td> <tr><td>81</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}

View file

@ -70,97 +70,97 @@
<td class="normal">&nbsp;*/ <td class="normal">&nbsp;*/
</td></tr> </td></tr>
<tr><td>21</td> <tr><td>21</td>
<td class="covered">Doctrine::autoload(&quot;Doctrine_Connection_Common&quot;); <td class="normal">
</td></tr> </td></tr>
<tr><td>22</td> <tr><td>22</td>
<td class="normal">/** <td class="covered">Doctrine::autoload(&quot;Doctrine_Connection_Common&quot;);
</td></tr> </td></tr>
<tr><td>23</td> <tr><td>23</td>
<td class="normal">&nbsp;*&nbsp;Doctrine_Connection_Sqlite <td class="normal">
</td></tr> </td></tr>
<tr><td>24</td> <tr><td>24</td>
<td class="normal">&nbsp;* <td class="normal">/**
</td></tr> </td></tr>
<tr><td>25</td> <tr><td>25</td>
<td class="normal">&nbsp;*&nbsp;@package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Doctrine <td class="normal">&nbsp;*&nbsp;Doctrine_Connection_Sqlite
</td></tr> </td></tr>
<tr><td>26</td> <tr><td>26</td>
<td class="normal">&nbsp;*&nbsp;@subpackage&nbsp;&nbsp;Connection <td class="normal">&nbsp;*
</td></tr> </td></tr>
<tr><td>27</td> <tr><td>27</td>
<td class="normal">&nbsp;*&nbsp;@license&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.opensource.org/licenses/lgpl-license.php&nbsp;LGPL <td class="normal">&nbsp;*&nbsp;@package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Doctrine
</td></tr> </td></tr>
<tr><td>28</td> <tr><td>28</td>
<td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt; <td class="normal">&nbsp;*&nbsp;@subpackage&nbsp;&nbsp;Connection
</td></tr> </td></tr>
<tr><td>29</td> <tr><td>29</td>
<td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lukas&nbsp;Smith&nbsp;&lt;smith@pooteeweet.org&gt;&nbsp;(PEAR&nbsp;MDB2&nbsp;library) <td class="normal">&nbsp;*&nbsp;@license&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.opensource.org/licenses/lgpl-license.php&nbsp;LGPL
</td></tr> </td></tr>
<tr><td>30</td> <tr><td>30</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;2963&nbsp;$ <td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt;
</td></tr> </td></tr>
<tr><td>31</td> <tr><td>31</td>
<td class="normal">&nbsp;*&nbsp;@link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;www.phpdoctrine.com <td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lukas&nbsp;Smith&nbsp;&lt;smith@pooteeweet.org&gt;&nbsp;(PEAR&nbsp;MDB2&nbsp;library)
</td></tr> </td></tr>
<tr><td>32</td> <tr><td>32</td>
<td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0 <td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;2963&nbsp;$
</td></tr> </td></tr>
<tr><td>33</td> <tr><td>33</td>
<td class="normal">&nbsp;*/ <td class="normal">&nbsp;*&nbsp;@link&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;www.phpdoctrine.com
</td></tr> </td></tr>
<tr><td>34</td> <tr><td>34</td>
<td class="covered">class&nbsp;Doctrine_Connection_Sqlite&nbsp;extends&nbsp;Doctrine_Connection_Common <td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0
</td></tr> </td></tr>
<tr><td>35</td> <tr><td>35</td>
<td class="normal">{ <td class="normal">&nbsp;*/
</td></tr> </td></tr>
<tr><td>36</td> <tr><td>36</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="covered">class&nbsp;Doctrine_Connection_Sqlite&nbsp;extends&nbsp;Doctrine_Connection_Common
</td></tr> </td></tr>
<tr><td>37</td> <tr><td>37</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@var&nbsp;string&nbsp;$driverName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;this&nbsp;connection&nbsp;driver <td class="normal">{
</td></tr> </td></tr>
<tr><td>38</td> <tr><td>38</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>39</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;$driverName&nbsp;=&nbsp;'Sqlite';
</td></tr>
<tr><td>40</td>
<td class="normal">
</td></tr>
<tr><td>41</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>42</td> <tr><td>39</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;the&nbsp;constructor <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@var&nbsp;string&nbsp;$driverName&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;this&nbsp;connection&nbsp;driver
</td></tr> </td></tr>
<tr><td>43</td> <tr><td>40</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>44</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;Doctrine_Manager&nbsp;$manager
</td></tr>
<tr><td>45</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;PDO&nbsp;$pdo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;database&nbsp;handle
</td></tr>
<tr><td>46</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>47</td> <tr><td>41</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;__construct(Doctrine_Manager&nbsp;$manager,&nbsp;$adapter) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;protected&nbsp;$driverName&nbsp;=&nbsp;'Sqlite';
</td></tr> </td></tr>
<tr><td>48</td> <tr><td>42</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>49</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>43</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>44</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;the&nbsp;constructor
</td></tr>
<tr><td>45</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>46</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;Doctrine_Manager&nbsp;$manager
</td></tr>
<tr><td>47</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;PDO&nbsp;$pdo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;database&nbsp;handle
</td></tr>
<tr><td>48</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>49</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;__construct(Doctrine_Manager&nbsp;$manager,&nbsp;$adapter)
</td></tr>
<tr><td>50</td> <tr><td>50</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;supported&nbsp;=&nbsp;array( <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>51</td> <tr><td>51</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'sequences'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'emulated', <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;supported&nbsp;=&nbsp;array('sequences'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;'emulated',
</td></tr> </td></tr>
<tr><td>52</td> <tr><td>52</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'indexes'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;true, <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'indexes'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;true,
@ -217,146 +217,126 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);
</td></tr> </td></tr>
<tr><td>70</td> <tr><td>70</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct($manager,&nbsp;$adapter);
</td></tr> </td></tr>
<tr><td>71</td> <tr><td>71</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;options['base_transaction_name']&nbsp;=&nbsp;'___php_Doctrine_sqlite_auto_commit_off'; <td class="normal">
</td></tr> </td></tr>
<tr><td>72</td> <tr><td>72</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;options['fixed_float']&nbsp;=&nbsp;0; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;isConnected)&nbsp;{
</td></tr> </td></tr>
<tr><td>73</td> <tr><td>73</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;options['database_path']&nbsp;=&nbsp;'';
</td></tr>
<tr><td>74</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;options['database_extension']&nbsp;=&nbsp;'';
</td></tr>
<tr><td>75</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;options['server_version']&nbsp;=&nbsp;'';
</td></tr>
<tr><td>76</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>77</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::__construct($manager,&nbsp;$adapter);
</td></tr>
<tr><td>78</td>
<td class="normal">
</td></tr>
<tr><td>79</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;isConnected)&nbsp;{
</td></tr>
<tr><td>80</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('mod',&nbsp;&nbsp;&nbsp;&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'modImpl'),&nbsp;2); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('mod',&nbsp;&nbsp;&nbsp;&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'modImpl'),&nbsp;2);
</td></tr> </td></tr>
<tr><td>81</td> <tr><td>74</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('concat',&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'concatImpl')); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('concat',&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'concatImpl'));
</td></tr> </td></tr>
<tr><td>82</td> <tr><td>75</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('md5',&nbsp;'md5',&nbsp;1); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('md5',&nbsp;'md5',&nbsp;1);
</td></tr> </td></tr>
<tr><td>83</td> <tr><td>76</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('now',&nbsp;'time',&nbsp;0); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('now',&nbsp;'time',&nbsp;0);
</td></tr> </td></tr>
<tr><td>84</td> <tr><td>77</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>85</td> <tr><td>78</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>86</td> <tr><td>79</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>87</td> <tr><td>80</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>88</td> <tr><td>81</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;initializes&nbsp;database&nbsp;functions&nbsp;missing&nbsp;in&nbsp;sqlite <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;initializes&nbsp;database&nbsp;functions&nbsp;missing&nbsp;in&nbsp;sqlite
</td></tr> </td></tr>
<tr><td>89</td> <tr><td>82</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>90</td> <tr><td>83</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@see&nbsp;Doctrine_Expression <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@see&nbsp;Doctrine_Expression
</td></tr> </td></tr>
<tr><td>91</td> <tr><td>84</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;void
</td></tr> </td></tr>
<tr><td>92</td> <tr><td>85</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>93</td> <tr><td>86</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;connect()&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;connect()&nbsp;
</td></tr> </td></tr>
<tr><td>94</td> <tr><td>87</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>95</td> <tr><td>88</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;isConnected)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;isConnected)&nbsp;{
</td></tr> </td></tr>
<tr><td>96</td> <tr><td>89</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;false;
</td></tr> </td></tr>
<tr><td>97</td> <tr><td>90</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>98</td> <tr><td>91</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>99</td> <tr><td>92</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::connect(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parent::connect();
</td></tr> </td></tr>
<tr><td>100</td> <tr><td>93</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>101</td> <tr><td>94</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('mod',&nbsp;&nbsp;&nbsp;&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'modImpl'),&nbsp;2); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('mod',&nbsp;&nbsp;&nbsp;&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'modImpl'),&nbsp;2);
</td></tr> </td></tr>
<tr><td>102</td> <tr><td>95</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('concat',&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'concatImpl')); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('concat',&nbsp;array('Doctrine_Expression_Sqlite',&nbsp;'concatImpl'));
</td></tr> </td></tr>
<tr><td>103</td> <tr><td>96</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('md5',&nbsp;'md5',&nbsp;1); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('md5',&nbsp;'md5',&nbsp;1);
</td></tr> </td></tr>
<tr><td>104</td> <tr><td>97</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('now',&nbsp;'time',&nbsp;0); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;dbh-&gt;sqliteCreateFunction('now',&nbsp;'time',&nbsp;0);
</td></tr> </td></tr>
<tr><td>105</td> <tr><td>98</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>106</td> <tr><td>99</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>107</td> <tr><td>100</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>108</td> <tr><td>101</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getDatabaseFile <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;getDatabaseFile
</td></tr> </td></tr>
<tr><td>109</td> <tr><td>102</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>110</td> <tr><td>103</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;database <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;database
</td></tr> </td></tr>
<tr><td>111</td> <tr><td>104</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string
</td></tr> </td></tr>
<tr><td>112</td> <tr><td>105</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>113</td> <tr><td>106</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getDatabaseFile($name) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getDatabaseFile($name)
</td></tr> </td></tr>
<tr><td>114</td> <tr><td>107</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>115</td> <tr><td>108</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$name&nbsp;.&nbsp;'.db'; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$name&nbsp;.&nbsp;'.db';
</td></tr> </td></tr>
<tr><td>116</td> <tr><td>109</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>117</td> <tr><td>110</td>
<td class="covered">}</td></tr> <td class="normal">}
</td></tr>
</table></body></html> </table></body></html>

View file

@ -3817,6 +3817,36 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>1270</td> <tr><td>1270</td>
<td class="normal">
</td></tr>
<tr><td>1271</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr>
<tr><td>1272</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Return&nbsp;the&nbsp;parts
</td></tr>
<tr><td>1273</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr>
<tr><td>1274</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;array&nbsp;The&nbsp;parts
</td></tr>
<tr><td>1275</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr>
<tr><td>1276</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;getParts()
</td></tr>
<tr><td>1277</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr>
<tr><td>1278</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$this-&gt;parts;
</td></tr>
<tr><td>1279</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>1280</td>
<td class="normal">} <td class="normal">}
</td></tr> </td></tr>
</table></body></html> </table></body></html>

File diff suppressed because it is too large Load diff

View file

@ -343,5 +343,6 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>112</td> <tr><td>112</td>
<td class="covered">}</td></tr> <td class="normal">}
</td></tr>
</table></body></html> </table></body></html>

View file

@ -235,7 +235,7 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>76</td> <tr><td>76</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$func; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$func;
</td></tr> </td></tr>
<tr><td>77</td> <tr><td>77</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
@ -250,71 +250,57 @@
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>81</td> <tr><td>81</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">
</td></tr> </td></tr>
<tr><td>82</td> <tr><td>82</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;load <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>83</td> <tr><td>83</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;returns&nbsp;the&nbsp;parsed&nbsp;query&nbsp;part <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;load
</td></tr> </td></tr>
<tr><td>84</td> <tr><td>84</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;returns&nbsp;the&nbsp;parsed&nbsp;query&nbsp;part
</td></tr> </td></tr>
<tr><td>85</td> <tr><td>85</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$having <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>86</td> <tr><td>86</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$having
</td></tr> </td></tr>
<tr><td>87</td> <tr><td>87</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string
</td></tr> </td></tr>
<tr><td>88</td> <tr><td>88</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;final&nbsp;public&nbsp;function&nbsp;load($having) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>89</td> <tr><td>89</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;final&nbsp;public&nbsp;function&nbsp;load($having)
</td></tr> </td></tr>
<tr><td>90</td> <tr><td>90</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;Doctrine_Tokenizer::bracketExplode($having,&nbsp;'&nbsp;',&nbsp;'(',&nbsp;')'); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>91</td> <tr><td>91</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$tokens&nbsp;=&nbsp;Doctrine_Tokenizer::bracketExplode($having,&nbsp;'&nbsp;',&nbsp;'(',&nbsp;')');
</td></tr> </td></tr>
<tr><td>92</td> <tr><td>92</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$r&nbsp;=&nbsp;array_shift($e); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$part&nbsp;=&nbsp;$this-&gt;parseAggregateFunction(array_shift($tokens));
</td></tr> </td></tr>
<tr><td>93</td> <tr><td>93</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$t&nbsp;=&nbsp;explode('(',&nbsp;$r); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$operator&nbsp;&nbsp;=&nbsp;array_shift($tokens);
</td></tr> </td></tr>
<tr><td>94</td> <tr><td>94</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;implode('&nbsp;',&nbsp;$tokens);
</td></tr> </td></tr>
<tr><td>95</td> <tr><td>95</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$count&nbsp;=&nbsp;count($t); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$part&nbsp;.=&nbsp;'&nbsp;'&nbsp;.&nbsp;$operator&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$value;
</td></tr> </td></tr>
<tr><td>96</td> <tr><td>96</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$r&nbsp;=&nbsp;$this-&gt;parseAggregateFunction($r); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$part;
</td></tr> </td></tr>
<tr><td>97</td> <tr><td>97</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$operator&nbsp;&nbsp;=&nbsp;array_shift($e);
</td></tr>
<tr><td>98</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;implode('&nbsp;',&nbsp;$e);
</td></tr>
<tr><td>99</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$r&nbsp;.=&nbsp;'&nbsp;'&nbsp;.&nbsp;$operator&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$value;
</td></tr>
<tr><td>100</td>
<td class="normal">
</td></tr>
<tr><td>101</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$r;
</td></tr>
<tr><td>102</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>103</td> <tr><td>98</td>
<td class="covered">}</td></tr> <td class="normal">}
</td></tr>
</table></body></html> </table></body></html>

View file

@ -172,5 +172,6 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>55</td> <tr><td>55</td>
<td class="covered">}</td></tr> <td class="normal">}
</td></tr>
</table></body></html> </table></body></html>

View file

@ -16,7 +16,7 @@
<td class="normal">/* <td class="normal">/*
</td></tr> </td></tr>
<tr><td>3</td> <tr><td>3</td>
<td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Where.php&nbsp;2963&nbsp;2007-10-21&nbsp;06:23:59Z&nbsp;Jonathan.Wage&nbsp;$ <td class="normal">&nbsp;*&nbsp;&nbsp;$Id:&nbsp;Where.php&nbsp;3029&nbsp;2007-10-29&nbsp;18:04:22Z&nbsp;zYne&nbsp;$
</td></tr> </td></tr>
<tr><td>4</td> <tr><td>4</td>
<td class="normal">&nbsp;* <td class="normal">&nbsp;*
@ -97,7 +97,7 @@
<td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0 <td class="normal">&nbsp;*&nbsp;@since&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.0
</td></tr> </td></tr>
<tr><td>30</td> <tr><td>30</td>
<td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;2963&nbsp;$ <td class="normal">&nbsp;*&nbsp;@version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;3029&nbsp;$
</td></tr> </td></tr>
<tr><td>31</td> <tr><td>31</td>
<td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt; <td class="normal">&nbsp;*&nbsp;@author&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Konsta&nbsp;Vesterinen&nbsp;&lt;kvesteri@cc.hut.fi&gt;
@ -241,302 +241,282 @@
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>78</td> <tr><td>78</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($this-&gt;query-&gt;getType()&nbsp;===&nbsp;Doctrine_Query::SELECT)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>79</td> <tr><td>79</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$first&nbsp;=&nbsp;$conn-&gt;quoteIdentifier($alias) <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$first&nbsp;=&nbsp;$this-&gt;query-&gt;parseClause($first);
</td></tr> </td></tr>
<tr><td>80</td> <tr><td>80</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;'.' <td class="normal">
</td></tr> </td></tr>
<tr><td>81</td> <tr><td>81</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;$conn-&gt;quoteIdentifier($table-&gt;getColumnName($field));
</td></tr>
<tr><td>82</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr>
<tr><td>83</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$first&nbsp;=&nbsp;$conn-&gt;quoteIdentifier($table-&gt;getColumnName($field));
</td></tr>
<tr><td>84</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>85</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr>
<tr><td>86</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$first&nbsp;=&nbsp;$this-&gt;query-&gt;parseClause($first);
</td></tr>
<tr><td>87</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>88</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;$first&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$operator&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$this-&gt;parseValue($value,&nbsp;$table,&nbsp;$field); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sql&nbsp;=&nbsp;$first&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$operator&nbsp;.&nbsp;'&nbsp;'&nbsp;.&nbsp;$this-&gt;parseValue($value,&nbsp;$table,&nbsp;$field);
</td></tr> </td></tr>
<tr><td>89</td> <tr><td>82</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>90</td> <tr><td>83</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$sql;&nbsp;&nbsp; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$sql;&nbsp;&nbsp;
</td></tr> </td></tr>
<tr><td>91</td> <tr><td>84</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>92</td> <tr><td>85</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>93</td> <tr><td>86</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>94</td> <tr><td>87</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>95</td> <tr><td>88</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>96</td> <tr><td>89</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;parseValue($value,&nbsp;Doctrine_Table&nbsp;$table&nbsp;=&nbsp;null,&nbsp;$field&nbsp;=&nbsp;null) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;parseValue($value,&nbsp;Doctrine_Table&nbsp;$table&nbsp;=&nbsp;null,&nbsp;$field&nbsp;=&nbsp;null)
</td></tr> </td></tr>
<tr><td>97</td> <tr><td>90</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>98</td> <tr><td>91</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(substr($value,&nbsp;0,&nbsp;1)&nbsp;==&nbsp;'(')&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(substr($value,&nbsp;0,&nbsp;1)&nbsp;==&nbsp;'(')&nbsp;{
</td></tr> </td></tr>
<tr><td>99</td> <tr><td>92</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;trim&nbsp;brackets <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;trim&nbsp;brackets
</td></tr> </td></tr>
<tr><td>100</td> <tr><td>93</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$trimmed&nbsp;&nbsp;&nbsp;=&nbsp;Doctrine_Tokenizer::bracketTrim($value); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$trimmed&nbsp;&nbsp;&nbsp;=&nbsp;Doctrine_Tokenizer::bracketTrim($value);
</td></tr> </td></tr>
<tr><td>94</td>
<td class="normal">
</td></tr>
<tr><td>95</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(substr($trimmed,&nbsp;0,&nbsp;4)&nbsp;==&nbsp;'FROM'&nbsp;||
</td></tr>
<tr><td>96</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;substr($trimmed,&nbsp;0,&nbsp;6)&nbsp;==&nbsp;'SELECT')&nbsp;{
</td></tr>
<tr><td>97</td>
<td class="normal">
</td></tr>
<tr><td>98</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;subquery&nbsp;found
</td></tr>
<tr><td>99</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;new&nbsp;Doctrine_Query();
</td></tr>
<tr><td>100</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;$this-&gt;query-&gt;createSubquery()-&gt;parseQuery($trimmed,&nbsp;false)-&gt;getQuery()&nbsp;.&nbsp;')';
</td></tr>
<tr><td>101</td> <tr><td>101</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>102</td> <tr><td>102</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(substr($trimmed,&nbsp;0,&nbsp;4)&nbsp;==&nbsp;'FROM'&nbsp;||
</td></tr>
<tr><td>103</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;substr($trimmed,&nbsp;0,&nbsp;6)&nbsp;==&nbsp;'SELECT')&nbsp;{
</td></tr>
<tr><td>104</td>
<td class="normal">
</td></tr>
<tr><td>105</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;subquery&nbsp;found
</td></tr>
<tr><td>106</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;new&nbsp;Doctrine_Query();
</td></tr>
<tr><td>107</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;$q-&gt;isSubquery(true)-&gt;parseQuery($trimmed)-&gt;getQuery()&nbsp;.&nbsp;')';
</td></tr>
<tr><td>108</td>
<td class="normal">
</td></tr>
<tr><td>109</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;elseif&nbsp;(substr($trimmed,&nbsp;0,&nbsp;4)&nbsp;==&nbsp;'SQL:')&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;elseif&nbsp;(substr($trimmed,&nbsp;0,&nbsp;4)&nbsp;==&nbsp;'SQL:')&nbsp;{
</td></tr> </td></tr>
<tr><td>110</td> <tr><td>103</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;substr($trimmed,&nbsp;4)&nbsp;.&nbsp;')'; <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;substr($trimmed,&nbsp;4)&nbsp;.&nbsp;')';
</td></tr> </td></tr>
<tr><td>111</td> <tr><td>104</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>112</td> <tr><td>105</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;simple&nbsp;in&nbsp;expression&nbsp;found <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;simple&nbsp;in&nbsp;expression&nbsp;found
</td></tr> </td></tr>
<tr><td>113</td> <tr><td>106</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;Doctrine_Tokenizer::sqlExplode($trimmed,&nbsp;','); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$e&nbsp;=&nbsp;Doctrine_Tokenizer::sqlExplode($trimmed,&nbsp;',');
</td></tr> </td></tr>
<tr><td>114</td> <tr><td>107</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>115</td> <tr><td>108</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;array(); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;array();
</td></tr> </td></tr>
<tr><td>109</td>
<td class="normal">
</td></tr>
<tr><td>110</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$index&nbsp;=&nbsp;false;
</td></tr>
<tr><td>111</td>
<td class="normal">
</td></tr>
<tr><td>112</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($e&nbsp;as&nbsp;$part)&nbsp;{
</td></tr>
<tr><td>113</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field))&nbsp;{
</td></tr>
<tr><td>114</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$index&nbsp;=&nbsp;$table-&gt;enumIndex($field,&nbsp;trim($part,&nbsp;&quot;'&quot;));
</td></tr>
<tr><td>115</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>116</td> <tr><td>116</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>117</td> <tr><td>117</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$index&nbsp;=&nbsp;false; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($index&nbsp;!==&nbsp;false)&nbsp;{
</td></tr> </td></tr>
<tr><td>118</td> <tr><td>118</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value[]&nbsp;=&nbsp;$index;
</td></tr> </td></tr>
<tr><td>119</td> <tr><td>119</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;($e&nbsp;as&nbsp;$part)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>120</td> <tr><td>120</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value[]&nbsp;=&nbsp;$this-&gt;parseLiteralValue($part);
</td></tr> </td></tr>
<tr><td>121</td> <tr><td>121</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$index&nbsp;=&nbsp;$table-&gt;enumIndex($field,&nbsp;trim($part,&nbsp;&quot;'&quot;)); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>122</td> <tr><td>122</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>123</td> <tr><td>123</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>124</td> <tr><td>124</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($index&nbsp;!==&nbsp;false)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$value)&nbsp;.&nbsp;')';
</td></tr> </td></tr>
<tr><td>125</td> <tr><td>125</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value[]&nbsp;=&nbsp;$index; <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>126</td> <tr><td>126</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;elseif&nbsp;(substr($value,&nbsp;0,&nbsp;1)&nbsp;==&nbsp;':'&nbsp;||&nbsp;$value&nbsp;===&nbsp;'?')&nbsp;{
</td></tr> </td></tr>
<tr><td>127</td> <tr><td>127</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value[]&nbsp;=&nbsp;$this-&gt;parseLiteralValue($part); <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;placeholder&nbsp;found
</td></tr> </td></tr>
<tr><td>128</td> <tr><td>128</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field)&nbsp;&amp;&amp;&nbsp;$table-&gt;getTypeOf($field)&nbsp;==&nbsp;'enum')&nbsp;{
</td></tr> </td></tr>
<tr><td>129</td> <tr><td>129</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;query-&gt;addEnumParam($value,&nbsp;$table,&nbsp;$field);
</td></tr> </td></tr>
<tr><td>130</td> <tr><td>130</td>
<td class="normal"> <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>131</td> <tr><td>131</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;'('&nbsp;.&nbsp;implode(',&nbsp;',&nbsp;$value)&nbsp;.&nbsp;')'; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;query-&gt;addEnumParam($value,&nbsp;null,&nbsp;null);
</td></tr> </td></tr>
<tr><td>132</td> <tr><td>132</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>133</td> <tr><td>133</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;elseif&nbsp;(substr($value,&nbsp;0,&nbsp;1)&nbsp;==&nbsp;':'&nbsp;||&nbsp;$value&nbsp;===&nbsp;'?')&nbsp;{
</td></tr>
<tr><td>134</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;placeholder&nbsp;found
</td></tr>
<tr><td>135</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field)&nbsp;&amp;&amp;&nbsp;$table-&gt;getTypeOf($field)&nbsp;==&nbsp;'enum')&nbsp;{
</td></tr>
<tr><td>136</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;query-&gt;addEnumParam($value,&nbsp;$table,&nbsp;$field);
</td></tr>
<tr><td>137</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr>
<tr><td>138</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;query-&gt;addEnumParam($value,&nbsp;null,&nbsp;null);
</td></tr>
<tr><td>139</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr>
<tr><td>140</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>141</td> <tr><td>134</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$enumIndex&nbsp;=&nbsp;false; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$enumIndex&nbsp;=&nbsp;false;
</td></tr> </td></tr>
<tr><td>142</td> <tr><td>135</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field))&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($table)&nbsp;&amp;&amp;&nbsp;isset($field))&nbsp;{
</td></tr> </td></tr>
<tr><td>143</td> <tr><td>136</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;check&nbsp;if&nbsp;value&nbsp;is&nbsp;enumerated&nbsp;value <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;check&nbsp;if&nbsp;value&nbsp;is&nbsp;enumerated&nbsp;value
</td></tr> </td></tr>
<tr><td>144</td> <tr><td>137</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$enumIndex&nbsp;=&nbsp;$table-&gt;enumIndex($field,&nbsp;trim($value,&nbsp;&quot;'&quot;)); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$enumIndex&nbsp;=&nbsp;$table-&gt;enumIndex($field,&nbsp;trim($value,&nbsp;&quot;'&quot;));
</td></tr> </td></tr>
<tr><td>145</td> <tr><td>138</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>146</td> <tr><td>139</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>147</td> <tr><td>140</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($enumIndex&nbsp;!==&nbsp;false)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($enumIndex&nbsp;!==&nbsp;false)&nbsp;{
</td></tr> </td></tr>
<tr><td>148</td> <tr><td>141</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;$enumIndex; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;$enumIndex;
</td></tr> </td></tr>
<tr><td>149</td> <tr><td>142</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;else&nbsp;{
</td></tr> </td></tr>
<tr><td>150</td> <tr><td>143</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;$this-&gt;parseLiteralValue($value); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$value&nbsp;=&nbsp;$this-&gt;parseLiteralValue($value);
</td></tr> </td></tr>
<tr><td>151</td> <tr><td>144</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>152</td> <tr><td>145</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>153</td> <tr><td>146</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$value; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$value;
</td></tr> </td></tr>
<tr><td>154</td> <tr><td>147</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>155</td> <tr><td>148</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>156</td> <tr><td>149</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/** <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;/**
</td></tr> </td></tr>
<tr><td>157</td> <tr><td>150</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;parses&nbsp;an&nbsp;EXISTS&nbsp;expression <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;parses&nbsp;an&nbsp;EXISTS&nbsp;expression
</td></tr> </td></tr>
<tr><td>158</td> <tr><td>151</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*
</td></tr> </td></tr>
<tr><td>159</td> <tr><td>152</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$where&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query&nbsp;where&nbsp;part&nbsp;to&nbsp;be&nbsp;parsed <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$where&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;query&nbsp;where&nbsp;part&nbsp;to&nbsp;be&nbsp;parsed
</td></tr> </td></tr>
<tr><td>160</td> <tr><td>153</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;boolean&nbsp;$negation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;use&nbsp;the&nbsp;NOT&nbsp;keyword <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;boolean&nbsp;$negation&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;whether&nbsp;or&nbsp;not&nbsp;to&nbsp;use&nbsp;the&nbsp;NOT&nbsp;keyword
</td></tr> </td></tr>
<tr><td>161</td> <tr><td>154</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;string
</td></tr> </td></tr>
<tr><td>162</td> <tr><td>155</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/
</td></tr> </td></tr>
<tr><td>163</td> <tr><td>156</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;parseExists($where,&nbsp;$negation) <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;public&nbsp;function&nbsp;parseExists($where,&nbsp;$negation)
</td></tr> </td></tr>
<tr><td>164</td> <tr><td>157</td>
<td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{ <td class="normal">&nbsp;&nbsp;&nbsp;&nbsp;{
</td></tr> </td></tr>
<tr><td>165</td> <tr><td>158</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$operator&nbsp;=&nbsp;($negation)&nbsp;?&nbsp;'EXISTS'&nbsp;:&nbsp;'NOT&nbsp;EXISTS'; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$operator&nbsp;=&nbsp;($negation)&nbsp;?&nbsp;'EXISTS'&nbsp;:&nbsp;'NOT&nbsp;EXISTS';
</td></tr> </td></tr>
<tr><td>166</td> <tr><td>159</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>167</td> <tr><td>160</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$pos&nbsp;=&nbsp;strpos($where,&nbsp;'('); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$pos&nbsp;=&nbsp;strpos($where,&nbsp;'(');
</td></tr> </td></tr>
<tr><td>168</td> <tr><td>161</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>169</td> <tr><td>162</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($pos&nbsp;==&nbsp;false)&nbsp;{ <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;($pos&nbsp;==&nbsp;false)&nbsp;{
</td></tr> </td></tr>
<tr><td>170</td> <tr><td>163</td>
<td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Query_Exception('Unknown&nbsp;expression,&nbsp;expected&nbsp;a&nbsp;subquery&nbsp;with&nbsp;()&nbsp;-marks'); <td class="red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;throw&nbsp;new&nbsp;Doctrine_Query_Exception('Unknown&nbsp;expression,&nbsp;expected&nbsp;a&nbsp;subquery&nbsp;with&nbsp;()&nbsp;-marks');
</td></tr> </td></tr>
<tr><td>171</td> <tr><td>164</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>172</td> <tr><td>165</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>173</td> <tr><td>166</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sub&nbsp;=&nbsp;Doctrine_Tokenizer::bracketTrim(substr($where,&nbsp;$pos)); <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sub&nbsp;=&nbsp;Doctrine_Tokenizer::bracketTrim(substr($where,&nbsp;$pos));
</td></tr> </td></tr>
<tr><td>174</td> <tr><td>167</td>
<td class="normal"> <td class="normal">
</td></tr> </td></tr>
<tr><td>175</td> <tr><td>168</td>
<td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$operator&nbsp;.&nbsp;'&nbsp;('&nbsp;.&nbsp;$this-&gt;query-&gt;createSubquery()-&gt;parseQuery($sub,&nbsp;false)-&gt;getQuery()&nbsp;.&nbsp;')'; <td class="covered">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;$operator&nbsp;.&nbsp;'&nbsp;('&nbsp;.&nbsp;$this-&gt;query-&gt;createSubquery()-&gt;parseQuery($sub,&nbsp;false)-&gt;getQuery()&nbsp;.&nbsp;')';
</td></tr> </td></tr>
<tr><td>176</td> <tr><td>169</td>
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>177</td> <tr><td>170</td>
<td class="covered">}</td></tr> <td class="normal">}
</td></tr>
</table></body></html> </table></body></html>

File diff suppressed because it is too large Load diff

View file

@ -973,5 +973,6 @@
<td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;} <td class="orange">&nbsp;&nbsp;&nbsp;&nbsp;}
</td></tr> </td></tr>
<tr><td>322</td> <tr><td>322</td>
<td class="covered">}</td></tr> <td class="normal">}
</td></tr>
</table></body></html> </table></body></html>

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long