On Friday, November 27, 2015 at 7:41:21 AM UTC-8, François Beausoleil wrote: > > Hi all! > > Is there a way to use the fluent syntax to get at a column that's named > through a schema/table/column fully qualified path? > > > Sequel.version > => "4.25.0" > > puts RDB[:x].select(:a__b__c___d).sql > SELECT "a"."b__c" AS "d" FROM "x" > # I expected: > # SELECT "a"."b"."c" AS "d" FROM "x" > > Sequel doesn't support 3-level qualification implicitly using a symbol. You'd have to do:
puts RDB[:x].select(Sequel.qualify(:a, :b__c).as(:d)).sql Thanks, Jeremy -- 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 http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
