1 Jul 2011 01:32
rookie question, func->SelectResults
Chris Bennett <cman122887 <at> hotmail.com>
2011-06-30 23:32:27 GMT
2011-06-30 23:32:27 GMT
SQLObject rookie here.
Say i have a function on my MySQL database that returns a new table.
so i access sqlbuilder.func.myfunc() by:
query = myconn.sqlrepr(sqlbuilder.Select(sqlbuilder.func.myfunc()))
results = myconn.queryAll(query)
and results is a tuple of tuples
Is there a way to have that table be returned as a SelectResults class so i can access its attrs and everything?
This may be a stupid question or already answered but i thought i would ask. Thank you very much
Chris Bennett
Say i have a function on my MySQL database that returns a new table.
so i access sqlbuilder.func.myfunc() by:
query = myconn.sqlrepr(sqlbuilder.Select(sqlbuilder.func.myfunc()))
results = myconn.queryAll(query)
and results is a tuple of tuples
Is there a way to have that table be returned as a SelectResults class so i can access its attrs and everything?
This may be a stupid question or already answered but i thought i would ask. Thank you very much
Chris Bennett
------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________ sqlobject-discuss mailing list sqlobject-discuss <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss






RSS Feed