> The fetching of the result sequence is not really a logical
> part of the generation of events from the result sequence,
> hence combining that (and the free of the result sequence)
> into a single procedure may not be the way to go.
I thought it work kind of well:
every person := dbi_conn_find(conn, "SELECT * FROM people") do
displayPerson(person)
That prevented me from having to deal with having a var for storing the
result, doing the actual query, and freeing the query when I was done
with it.
However, I see now that's not possible, so I'll just omit the function
and use:
res := dbi_conn_query(conn, "SELECT * FROM people")
every person := dbi_result_fetch_next_table(res) do
displayPerson(person)
dbi_result_free(res)
Add's two more lines and a declared var, no huge deal, just though the
other was rather nice.
Jeremy


|