Yes, that seemed to fix it. Thanks!!
J On Thursday, January 12, 2017 at 4:16:17 PM UTC-5, Jeremy Evans wrote: > > On Thursday, January 12, 2017 at 12:52:17 PM UTC-8, Jay Danielian wrote: >> >> Thanks for the response, you are a lifesaver! Yes, removing the plugin >> seems to work. >> >> I can confirm with tracing it through it seems like the issue is in the >> prepared_statements plugin. The code dataset.opts.fetch(:server, :default) >> seems to miss the supplied :server key (or set_server key) as dataset.opts >> is missing the supplied value, so I think :default is always returned. >> >> # Return a prepared statement that can be used to insert a row >> using the given columns >> # and return that column values for the row created. >> def prepared_insert_select(cols) >> if dataset.supports_insert_select? >> cached_prepared_statement(:insert_select, >> prepared_columns(cols)){prepare_explicit_statement(naked.clone(:server=>dataset.opts.fetch(:server, >> >> :default)), :insert_select, prepared_statement_key_hash(cols))} >> end >> end >> >> It *seems* like these methods that do the preparation >> _insert_raw, _insert_select_raw, _refresh_get would work if inside those >> methods there was something like >> >> model.dataset.opts.merge!(ds.opts) >> >> before calling the model.send(:prepared_blah...) would work as I could >> see the ds.opts variable having the :server key set but the model.dataset >> did not (which is what is being used to pick the server). >> >> Thanks for the great support! >> > > I've fixed the issues in the prepared_statements plugin (and related > plugins), could you please try the master branch and see if that fixes the > issues for you? > > Thanks, > Jeremy > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to sequel-talk+unsubscr...@googlegroups.com. To post to this group, send email to sequel-talk@googlegroups.com. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.