MySQLdb and DictCursor

2008-01-22 Thread Frank Aune
Hi, Im using a MySQLdb connection with a DictCursor, and to me it seems the wrapping to dictionaries only prepend column names when there is an actual conflict in the keywords. I would like the cursor to always prepend table names no matter what. Is this possible? Thanks, -Frank -- http://ma

Re: MySQLdb and dictcursor

2006-07-28 Thread blank
Dennis Lee Bieber <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > dictCursor > RETURNS the results as a dictionary; it doesn't affect how > parameters are passed in. thats how I was using it > > Normally results are a (list or tuple) where you have to know the > ord

Re: MySQLdb and dictcursor

2006-07-24 Thread Francesco Panico
On 7/24/06, Christoph Haas <[EMAIL PROTECTED]> wrote: On Monday 24 July 2006 14:06, borris wrote:> doesn anyone know a good reference, tute or examples of> MySQLdb's dictCursor> I want to pass dictionaries into the sql exec statements.> I could only succeed with text as values A german linux magazi

Re: MySQLdb and dictcursor

2006-07-24 Thread Christoph Haas
On Monday 24 July 2006 14:06, borris wrote: > doesn anyone know a good reference, tute or examples of > MySQLdb's dictCursor > I want to pass dictionaries into the sql exec statements. > I could only succeed with text as values A german linux magazin has an article about passing a *list* of items

MySQLdb and dictcursor

2006-07-24 Thread borris
doesn anyone know a good reference, tute or examples of MySQLdb's dictCursor I want to pass dictionaries into the sql exec statements. I could only succeed with text as values this is how I got the cursor object to call cursor.execute("query") connection = MySQLdb.connect( host = "localhost", u