Git Product home page Git Product logo

Comments (3)

maxwheeler avatar maxwheeler commented on August 18, 2024

This patch seems to fix the problem but I haven't done extensive testing.

--- a/util/phpcassa/columnfamily.php
+++ b/util/phpcassa/columnfamily.php
@@ -1225,21 +1225,28 @@ class ColumnFamilyIterator implements Iterator {
if (count(current($this->current_buffer)) == 0)
{
# this is an empty row, skip it

  •            $key = key($this->current_buffer);
    
  •            $this->next();
    
  •            while (count(current($this->current_buffer)) == 0) {
    
  •                   $this->next_start_key = key($this->current_buffer);
    
  •                   next($this->current_buffer);
    
  •                   $key = key($this->current_buffer);
    
  •                   if ( !isset($key) ) {
    
  •                           $beyond_last_row = true;
    
  •                           break;
    
  •                   }
    
  •           }
    
  •        }
    
  •        else {
    
  •               $key = key($this->current_buffer);
    
  •               $beyond_last_row = !isset($key);
         }
    
  •        else # count > 0
    
  •        if (!$beyond_last_row)
         {
    
  •            $key = key($this->current_buffer);
    

- $beyond_last_row = !isset($key);

  •            if (!$beyond_last_row)
    
  •            {
    
  •                $this->rows_seen++;
    
  •                if ($this->rows_seen > $this->row_count) {
    
  •                    $this->is_valid = false;
    
  •                    return;
    
  •                }
    
  •            $this->rows_seen++;
    
  •            if ($this->rows_seen > $this->row_count) {
    
  •                $this->is_valid = false;
    
  •                return;
             }
         }
     }
    

from phpcassa.

thobbs avatar thobbs commented on August 18, 2024

Would you mind opening a pull request for this? You can find instructions here: http://help.github.com/send-pull-requests/

This is definitely a bug, and I appreciate you taking the time to come up with a patch. Thanks!

from phpcassa.

maxwheeler avatar maxwheeler commented on August 18, 2024

done, pull request sent

from phpcassa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.