Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
30 | 2 | 6 | 0.981 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 30 | 195 | libraries/joomla/database/database/mysql.php |
2 | 30 | 211 | libraries/joomla/database/database/mysqli.php |
| ||||
/** * Execute the query * * @access public * @return mixed A database resource if successful, FALSE if not. */ public function query() { if (!is_resource($this->_resource)) { return FALSE; } // Take a local copy so that we don't modify the original query and cause issues later $sql= $this->_sql; if ($this->_limit > 0 || $this->_offset > 0) { $sql.= ' LIMIT ' . $this->_offset . ', ' . $this->_limit; } if ($this->_debug) { $this->_ticker ++; $this->_log[]= $sql; } $this->_errorNum = 0; $this->_errorMsg = ''; $this->_cursor = mysql_query($sql, $this->_resource); if (!$this->_cursor) { $this->_errorNum = mysql_errno($this->_resource); $this->_errorMsg = mysql_error($this->_resource) . " SQL=$sql"; if ($this->_debug) { JError::raiseError(500, 'JDatabaseMySQL::query: ' . $this->_errorNum . ' - ' . $this->_errorMsg); } return FALSE; } return $this->_cursor; } |
| ||||
/** * Execute the query * * @access public * @return mixed A database resource if successful, FALSE if not. */ public function query() { if (!is_object($this->_resource)) { return FALSE; } // Take a local copy so that we don't modify the original query and cause issues later $sql= $this->_sql; if ($this->_limit > 0 || $this->_offset > 0) { $sql.= ' LIMIT ' . $this->_offset . ', ' . $this->_limit; } if ($this->_debug) { $this->_ticker ++; $this->_log[]= $sql; } $this->_errorNum = 0; $this->_errorMsg = ''; $this->_cursor = mysqli_query($this->_resource ,$sql); if (!$this->_cursor) { $this->_errorNum = mysqli_errno($this->_resource); $this->_errorMsg = mysqli_error($this->_resource) . " SQL=$sql"; if ($this->_debug) { JError::raiseError(500, 'JDatabaseMySQL::query: ' . $this->_errorNum . ' - ' . $this->_errorMsg); } return FALSE; } return $this->_cursor; } |
| |||
/** * Execute the query * * @access public * @return mixed A database resource if successful, FALSE if not. */ /** * Execute the query * * @access public * @return mixed A database resource if successful, FALSE if not. */ public function query() { if (! [[#variable527357a0]]($this->_resource)) { return FALSE; } // Take a local copy so that we don't modify the original query and cause issues later $sql=$this->_sql; if ($this->_limit >0 || $this->_offset >0) { $sql.=' LIMIT ' . $this->_offset . ', ' . $this->_limit; } if ($this->_debug) { $this->_ticker ++; $this->_log[]=$sql; } $this->_errorNum =0; $this->_errorMsg =''; $this->_cursor = [[#variable52735720]]( [[#variable527356e0]], [[#variable527355c0]]); if (!$this->_cursor) { $this->_errorNum = [[#variable52735520]]($this->_resource); $this->_errorMsg = [[#variable52735620]]($this->_resource) . " SQL=$sql"; if ($this->_debug) { JError::raiseError(500,'JDatabaseMySQL::query: ' . $this->_errorNum . ' - ' . $this->_errorMsg); } return FALSE; } return $this->_cursor; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#527357a0]] | is_object |
1 | 2 | [[#527357a0]] | is_resource |
2 | 1 | [[#52735720]] | mysqli_query |
2 | 2 | [[#52735720]] | mysql_query |
3 | 1 | [[#527356e0]] | $this->_resource |
3 | 2 | [[#527356e0]] | $sql |
4 | 1 | [[#527355c0]] | $sql |
4 | 2 | [[#527355c0]] | $this->_resource |
5 | 1 | [[#52735520]] | mysqli_errno |
5 | 2 | [[#52735520]] | mysql_errno |
6 | 1 | [[#52735620]] | mysqli_error |
6 | 2 | [[#52735620]] | mysql_error |