El Lunes, 28 de Diciembre de 2009, Iñaki Baz Castillo escribió:
> Hi, I'm testing Sequel with 'pg' driver using Posgres-8.4 database. I use 
> prepared statements.
> 
> After restarting the database the next query fails with the following
>  error.

Now I've tested without prepared statements (or bound variables) with 'pg' 
driver. After restarting the database I get this error for next query and
following queries:

----------------------------------
NoMethodError: undefined method `clear' for nil:NilClass   
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/adapters/postgres.rb:162:in
 `ensure in execute'                                                            
                                    
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/adapters/postgres.rb:162:in
 `execute'   
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/adapters/postgres.rb:224:in
 `block in execute'                                                             
                                    
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/connection_pool.rb:313:in
 `hold'
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/database.rb:532:in
 `synchronize'
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/adapters/postgres.rb:224:in
 `execute'
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/dataset/actions.rb:100:in
 `execute'
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/adapters/postgres.rb:310:in
 `fetch_rows'
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/dataset/actions.rb:61:in
 `each'
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/dataset/convenience.rb:232:in
 `single_record'
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/dataset/convenience.rb:239:in
 `single_value'
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/dataset/convenience.rb:79:in
 `get'
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/dataset/sql.rb:122:in
 `count' 
----------------------------------


-- 
Iñaki Baz Castillo <[email protected]>

--

You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.


Reply via email to