Hi:
I am doing this to get pooled data in my application
In [183]: class Person(SQLObject):
_connection = connection
nombre = StringCol()
.....:
.....:
In [191]: personas = Person.select()
In [192]: for person in personas:
.....: print person.nombre
.....:
.....:
Juan
Pedro
Luis
Pedro
In [193]: select = Select([Person.q.nombre], groupBy="nombre")
In [194]: results = connection.queryAll(connection.sqlrepr(select))
In [195]: for person in results:
.....: print person
.....:
.....:
('Juan',)
In [196]:
1. Which may be the mistake?
2. It may be implemented in sqlobject GROUP BY + ORDER BY
Thanks!
[1] http://www.mail-archive.com/sqlobject-discuss%
0lists.sourceforge.net/msg01712.html
--
+---------------------------------
| Heizenreder Guillermo
| http://gheize.wordpress.com/
| http://code.google.com/u/gheize/
| http://tipslinux.blogspot.com/
+---------------------------------
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss