On Dec 2, 2:37 am, valodzka <[EMAIL PROTECTED]> wrote:
> Why Sequel::Dataset#exists returns result as String? Is it desing
> feature or inattentiveness?
> For example we can't do this directly:
>   existsA = DB[some query].exists
>   existsB = DB[some query].exists
>   DB.select(existsA, existsB)
> Or this:
>   exitsA.as(:is_a_exists)
> There are, of course, workaround, we can call exists.lit and then
> previous examples will work, but I think  exists should return literal
> or something like this directly.

Thanks for pointing this out.  I agree that it should return a
LiteralString, so I changed it:
http://github.com/jeremyevans/sequel/commit/c075608be547ae60d0e70a3f76768ac9d7984164

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to