original_string: public function get_row_format_sql($engine = null, $collation = null) {
  
          if (!isset($engine)) {
              $engine = $this->get_dbengine();
          }
          $engine = strtolower($engine);
  
          if (!isset($collation)) {
              $collation = $this->get_dbcollation();
          }
  
          $rowformat = '';
          if (($engine === 'innodb' || $engine === 'xtradb') && strpos($collation, 'utf8mb4_') === 0) {
              if ($this->is_compressed_row_format_supported()) {
                  $rowformat = "ROW_FORMAT=Compressed";
              } else {
                  $rowformat = "ROW_FORMAT=Dynamic";
              }
          }
          return $rowformat;
      }
code: public function get_row_format_sql($engine = null, $collation = null) {
  
          if (!isset($engine)) {
              $engine = $this->get_dbengine();
          }
          $engine = strtolower($engine);
  
          if (!isset($collation)) {
              $collation = $this->get_dbcollation();
          }
  
          $rowformat = '';
          if (($engine === 'innodb' || $engine === 'xtradb') && strpos($collation, 'utf8mb4_') === 0) {
              if ($this->is_compressed_row_format_supported()) {
                  $rowformat = "ROW_FORMAT=Compressed";
              } else {
                  $rowformat = "ROW_FORMAT=Dynamic";
              }
          }
          return $rowformat;
      }
code_tokens: public function get_row_format_sql ( $ engine = null , $ collation = null ) { if ( ! isset ( $ engine ) ) { $ engine = $ this -> get_dbengine ( ) ; } $ engine = strtolower ( $ engine ) ; if ( ! isset ( $ collation ) ) { $ collation = $ this -> get_dbcollation ( ) ; } $ rowformat = '' ; if ( ( $ engine === 'innodb' || $ engine === 'xtradb' ) && strpos ( $ collation , 'utf8mb4_' ) === 0 ) { if ( $ this -> is_compressed_row_format_supported ( ) ) { $ rowformat = "ROW_FORMAT=Compressed" ; } else { $ rowformat = "ROW_FORMAT=Dynamic" ; } } return $ rowformat ; }
docstring: Determine if the row format should be set to compressed, dynamic, or default.
  
  Terrible kludge. If we're using utf8mb4 AND we're using InnoDB, we need to specify row format to
  be either dynamic or compressed (default is compact) in order to allow for bigger indexes (MySQL
  errors #1709 and #1071).
  
  @param  string $engine The database engine being used. Will be looked up if not supplied.
  @param  string $collation The database collation to use. Will look up the current collation if not supplied.
  @return string An sql fragment to add to sql statements.
docstring_tokens: Determine if the row format should be set to compressed dynamic or default .