CloneSet208


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30260.981class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
130195
libraries/joomla/database/database/mysql.php
230211
libraries/joomla/database/database/mysqli.php
Clone Instance
1
Line Count
30
Source Line
195
Source File
libraries/joomla/database/database/mysql.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;
              }


Clone Instance
2
Line Count
30
Source Line
211
Source File
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_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;
              }


Clone AbstractionParameter Count: 6Parameter Bindings

/**
        * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#527357a0]]
is_object 
12[[#527357a0]]
is_resource 
21[[#52735720]]
mysqli_query 
22[[#52735720]]
mysql_query 
31[[#527356e0]]
$this->_resource 
32[[#527356e0]]
$sql 
41[[#527355c0]]
$sql 
42[[#527355c0]]
$this->_resource 
51[[#52735520]]
mysqli_errno 
52[[#52735520]]
mysql_errno 
61[[#52735620]]
mysqli_error 
62[[#52735620]]
mysql_error