Hello I have to insert many datasets into a PostgreSQL table. The table is partitioned and uses a trigger to redirect an inserted record to the correct table behind it. It works without an ORM.
I use a model for the table. Both ActiveRecord and Sequel seem to struggle with it. Disabling the feature in the sources of ActiveRecord solved the problem. In Sequel, there's a special method to do that: #disable_insert_returning. I used the method on the dataset behind the Model like this: MyModel.dataset.disable_insert_returning and like this: MyModel.dataset = MyModel.dataset.disable_insert_returning Both ways don't work. When I insert a record using #save, it still appends "RETURNING *". How to disable this feature? The documentation and Google didn't help so far. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
