No, but it would not help me.
I want to implement dynamic queries, actually support adding some
WHERE and SELECT parts in query (extending original queries).
And iteration through Rows object should work without knowing did
query had JOINs or not.
Problem is when original query does not have
Now I understand:
rows = db(...).select(...)
rows.compact = False
and now you always have the rows[i].table.field syntax. no more
rows[i].field shortcuts.
Massimo
On Aug 9, 1:06 pm, Marin Pranjic marin.pran...@gmail.com wrote:
No, but it would not help me.
I want to implement dynamic
Thanks
Marin
On 9 Aug 2011 20:18, Massimo Di Pierro massimo.dipie...@gmail.com wrote:
Now I understand:
rows = db(...).select(...)
rows.compact = False
and now you always have the rows[i].table.field syntax. no more
rows[i].field shortcuts.
Massimo
On Aug 9, 1:06 pm, Marin Pranjic
rows = db(...).select(...)
rows.compact = False
and now you always have the rows[i].table.field syntax. no more
rows[i].field shortcuts.
Thank you Massimo, this will save some 'ifs' that i've made in my plugins.
I run into that problem a lot as well and haven't figured out the best way
to handle it.
Is it possible to do something like this?
for item, auth_user in rows.item, rows.auth_user:
...
5 matches
Mail list logo