On Monday, April 24, 2017 at 12:29:43 PM UTC-7, Mark Cyzyk wrote:
>
>
> NICE. Thanks!
>
> Now, while I have you on the line, the following:
>
> # Create dataset of All Records, then sort it
> dsAllRecords = DBlookup[:main]
> dsAllRecords = dsAllRecords.order(:BeginCallNumber)
>
> # Create dataset of Eisenhower General Collection that are NOT Quarto or
> Folio
> dsEisenhowerGeneralCollection = dsAllRecords.where('BeginCallNumber NOT
> LIKE "%QUARTO" AND BeginCallNumber NOT LIKE "%FOLIO" AND CollectionCode =
> "Eisenhower General Collection"').sql
>
> I was assuming that "dsEisenhowerGeneralCollection" here is a new
> dataset. And yet, further down in my code when I try to issue a
> dsEisenhowerGeneralCollection.each I get a "method undefined" error again.
>
dsEisenhowerGeneralCollection is a string, as that is what Dataset#sql
returns.
>
>
> dsEisenhowerGeneralCollection.each do |row|
> puts row[1]
> end
>
Probably fails because String#each is not defined.
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 https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.