#102 ✓resolved
John Topley

RuntimeError When Invoking #to_sql or #to_hash

Reported by John Topley | September 1st, 2007 @ 12:00 PM

Hi,

I get a RuntimeError when invoking the #to_sql or #to_hash methods on a Query object in an irb session:

RuntimeError: Missing process method for sexp: [:lasgn, :a]
from /usr/local/lib/ruby/gems/1.8/gems/ambition-0.1.5/lib/ambition/processor.rb:22:in `process_error'
from /usr/local/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/lib/sexp_processor.rb:241:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/lib/sexp_processor.rb:299:in `error_handler'
from /usr/local/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/lib/sexp_processor.rb:240:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/ambition-0.1.5/lib/ambition/processor.rb:26:in `process_proc'
from /usr/local/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/lib/sexp_processor.rb:241:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/lib/sexp_processor.rb:299:in `error_handler'
from /usr/local/lib/ruby/gems/1.8/gems/ParseTree-2.0.1/lib/sexp_processor.rb:240:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/ambition-0.1.5/lib/ambition/processor.rb:44:in `to_s'
from /usr/local/lib/ruby/gems/1.8/gems/ambition-0.1.5/lib/ambition/query.rb:70:in `keyed_clauses'
from (irb):17:in `inject'
from /usr/local/lib/ruby/gems/1.8/gems/ambition-0.1.5/lib/ambition/query.rb:68:in `keyed_clauses'
from /usr/local/lib/ruby/gems/1.8/gems/ambition-0.1.5/lib/ambition/query.rb:31:in `to_hash'
from (irb):17

Any idea what could be causing this? I followed the installation instructions in your blog entry.

Thanks,

John

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Tags

Pages