Subject: Re: How to use sqlite3 UPDATE command correctly in ruby program
	Date: mer 18 dic 13 12:27:40 +0100

Quoting Mike Vezzani (lists / ruby-forum.com):

> Here is the error I got:
> 
> /lib/sqlite3/statement.rb:39:in `bind_param': no such bind parameter 
> (SQLite3::Exception)

What sort of an object is book_to_loan? Check it. Add a printout,
something as

p book_to_loan

When you pass bindable parameters, they should be exactly the same
number as the placeholders in your SQL statement.

It seems that you are passing two parameters, but you are apparently
passing to your query a variable that can be converted into an
array. The Sqlite lib (which joins all parameters and then flattens
the resulting array) finds more parameters than placeholders. This is
why you get that error.

Carlo

-- 
  *         Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido / fluido.as             che bisogno ci sarebbe
  *               di parlare tanto di amore e di rettitudine? (Chuang-Tzu)