Hi,

Am 11.08.2009 um 21:59 schrieb Maximilian Karasz:

ah, thank you so much for the hint, forcing the sequence did the trick.

out of curiousity: while the following works

(cql/run [*connection* result] (cql/query * people) (doall (take 5 result)))

this does not

(doall (cql/run [*connection* result] (cql/query * people) (take 5 result)))

suggesting that the ResultSet on which the lazy sequence relies for
realizing its values is closed once cql/run has returned - does this
sound like a reasonable explanation?

Yes. run uses a one-shot connection. When you leave the body
the connection will be closed. Hence the second form cannot
work, because the connection is already closed. We are currently
working on improving the connection handling.

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to