Hi there,
I am using Sequel 4.33 and tiny_tds 1.0.4.
This statement:
class MyModel < Sequel::Model
def validate
super
if not_disabled?
validates_unique [:name, :client_id], message: Sequel.lit('Name is
already taken') do |ds|
ds.exclude(disabled: true)
end
end
end
end
Fails with:
Sequel::DatabaseDisconnectError: TinyTds::Error: Attempt to initiate a new
Adaptive Server operation with results pending
Looks like it cannot run query generated by the block.
Is there anyway to work around this?
thanks,
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.