On 27.04.09 10:08, ae wrote:
>
> It doesn't appear that executesql is used internally.
>
> I prefer not to have a locally modified version of gluon.
>
> How about:
>
> def executesql_with_description(self, sql):
> ...
>
> you named it _cursor! ;)
You could inherit from SQLDB in your db.py and override the method:
class mySQLDB(SQLDB):
def __init__(self, uri='sqlite://dummy.db', pool_size=0, pools=0):
super(mySQLDB, self).__init__(uri, pool_size, pools)
def executesql(self, query):
# TODO: your stuff here
I'm working something like this to return Oracle's ref cursor in a more
"web2pic" style (I just made that out), it's still a little buggy but I
promise to post working examples in the wiki as soon as I make it work.
Mariano
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---