Hi, today I've faced something unexpected.

I've changed one library to increment the model's version and in some code 
using the library, I was comparing the version and the expected failed 
wasn't matching.

Then I noticed that when we do:

model.update version: Sequel.lit('version + ')

Then model.version won't reflect the computed version after the update 
statement.

This is unexpected because I'd assume all around that calling model.version 
would always retrieve the actual value of the field. What would be the 
recommended Sequel way to deal with that? Avoid using literal when using 
the update instance method? Are there any refresh-like methods that would 
only refresh a single column (or a set of columns)?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/3ab62378-ed3e-4b3c-ac91-2686072d491fn%40googlegroups.com.

Reply via email to