original_string: public function get_fieldset_sql($sql, array $params=null) {
          $rs = $this->get_recordset_sql($sql, $params);
          if (!$rs->valid()) {
              $rs->close(); // Not going to iterate (but exit), close rs
              return false;
          }
          $result = array();
          foreach($rs as $value) {
              $result[] = reset($value);
          }
          $rs->close();
          return $result;
      }
code: public function get_fieldset_sql($sql, array $params=null) {
          $rs = $this->get_recordset_sql($sql, $params);
          if (!$rs->valid()) {
              $rs->close(); // Not going to iterate (but exit), close rs
              return false;
          }
          $result = array();
          foreach($rs as $value) {
              $result[] = reset($value);
          }
          $rs->close();
          return $result;
      }
code_tokens: public function get_fieldset_sql ( $ sql , array $ params = null ) { $ rs = $ this -> get_recordset_sql ( $ sql , $ params ) ; if ( ! $ rs -> valid ( ) ) { $ rs -> close ( ) ; // Not going to iterate (but exit), close rs return false ; } $ result = array ( ) ; foreach ( $ rs as $ value ) { $ result [ ] = reset ( $ value ) ; } $ rs -> close ( ) ; return $ result ; }
docstring: Selects rows and return values of first column as array.
  
  @param string $sql The SQL query
  @param array $params array of sql parameters
  @return array of values
docstring_tokens: Selects rows and return values of first column as array .