Aldric Giacomoni wrote:
>     statement_handle.execute

Have you checked the return value from this lin?

>   return rows rescue 0

The 'rescue 0' is superfluous here, it can never be triggered.

Maybe you want:

  return rows || 0

(i.e. if rows is nil, return 0). Note that even if the statement which 
assigns to rows has never been executed, it will contain nil.

e.g.

  if false
    foo = 123
  end
  puts foo.inspect    # shows nil
-- 
Posted via http://www.ruby-forum.com/.