jeremyevans/sequel — Issue #404: on_duplicate_key_update does not work with Prepared Statements
Author: patrickdet
Created: 2011-12-01 16:45:10+00:00
State: open

I noticed that on_duplicate_key_update does not work with Prepared Statements when i wrote this query:

```ruby
dataset = DB[:featurevotes].on_duplicate_key_update
prep_statement = dataset.prepare(:insert, :insert_user_id_feature_name, :customer_id => :$customer_id, :feature_name => :$feature_name)
prep_statement.call(:customer_id => user_id, :feature_name => feature_name)

```

everytime i try to build a query in this form or another i get a **StackLevel too deep**
not sure if this is a real bug or if i am just not doing it right.