On Mar 2, 11:50 am, Clive Crous <[email protected]> wrote:
> 2009/3/2 Jeremy Evans <[email protected]>
>
> > Until Sequel supports this directly (if ever)
>
> I did say it's incredibly "hackish" ;)
> I must admit I like that syntax though. Would you consider a patch which
> supported that in a more formal manner?

The reason I don't like it is while it results in the same SQL syntax,
it doesn't obey the same semantics.  Symbol#[], when added by Sequel,
returns instances of SQL::Function, not SQL::Type (which doesn't
exist).  Any patch would have to use a different method and return an
instance a different class, which would defeat the purpose as it
probably would be more verbose than String#lit.  Just use String#lit,
it's the best solution to this problem.

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