On Wed, Oct 13, 2010 at 4:10 PM, andrei <[email protected]> wrote:
> How do I know which mysql backend is loaded?

I believe it's this one: http://mysql-python.sourceforge.net/MySQLdb.html

# web.db
class MySQLDB(DB):
    def __init__(self, **keywords):
        import MySQLdb as db
        if 'pw' in keywords:
            keywords['passwd'] = keywords['pw']
            del keywords['pw']

> If all SQL queries during one http request were in the same database
> session, then it would be possible to include db.query("SET time_zone
> = timezone") in web.loadhook. But how can I be sure?

I've no idea what ``SET time_zone`` does, but I'm guessing it's
setting the time_zone for the whole database or a table? Or is it
something on DBMS level (like for the whole MySQL installation)? Or on
connection-level?


-- 
Branko Vukelić

[email protected]
[email protected]

Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca: http://identi.ca/foxbunny

Gimp Brushmakers Guild
http://bit.ly/gbg-group

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to