On Oct 21, 5:23 am, Clive Crous <[email protected]> wrote: > Hi, > > Here's a minimal example with comments explaining where this issue happens. > I have only tested this with postgres. > > http://gist.github.com/44ab7735a0d9d5a8b7f5
It's not a bug. That 'NOW()'.lit works with Model.create is an accident, not by design. Model typecasting is not designed to work with all of the Sequel::SQL::* objects, you need to drop down to the dataset level if you want to use them. You can use model_instance.this to get a dataset for this that instance for updating. For inserting, Model.insert works fine. You can turn typecasting off (or raise_on_typecast_failure off), and you might be able to work around the issue, but it isn't something I'd recommend. Jeremy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
