Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 1 | 0.995 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 1092 | libraries/joomla/database/tablenested.php |
2 | 8 | 1108 | libraries/joomla/database/tablenested.php |
| ||||
// Test for a unique record with parent_id = 0 $this->_db->setQuery( 'SELECT ' . $this->_db->nameQuote($k) . ' FROM ' . $this->_tbl . ' WHERE `parent_id` = 0'); $result= $this->_db->loadResultArray(); if ($this->_db->getErrorNum()) { throw new Exception($this->_db->getErrorMsg()); } |
| ||||
// Test for a unique record with lft = 0 $this->_db->setQuery( 'SELECT ' . $this->_db->nameQuote($k) . ' FROM ' . $this->_tbl . ' WHERE `lft` = 0'); $result= $this->_db->loadResultArray(); if ($this->_db->getErrorNum()) { throw new Exception($this->_db->getErrorMsg()); } |
| |||
// Test for a unique record with parent_id = 0 // Test for a unique record with lft = 0 $this->_db->setQuery('SELECT ' . $this->_db->nameQuote($k) . ' FROM ' . $this->_tbl . [[#variable22f3f8a0]]); $result=$this->_db->loadResultArray(); if ($this->_db->getErrorNum()) { throw new Exception($this->_db->getErrorMsg()); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#22f3f8a0]] | ' WHERE `parent_id` = 0' |
1 | 2 | [[#22f3f8a0]] | ' WHERE `lft` = 0' |