Michael C. Neel
neel at mediapulse.com
Tue Dec 30 11:08:45 EST 2003
Do you have PythonDebug On in your conf to see any traceback errors? They should also be in your error log as well, even if debug is off. If they don't answer your questions, forward those on they will help in seeing the problem. Thanks, Mike > -----Original Message----- > From: Petros Keshishian [mailto:pkeshishian at yahoo.com] > Sent: Tuesday, December 30, 2003 4:55 AM > To: mod_python at modpython.org > Subject: [mod_python] MySQLdb > > > I would very much appreciate if anyone could resolve > my problem with MySQLdb. > > I am try to run a query from mod_python as follows: > > db = MySQldb.connect(db='aua', user='root') > c = db.cursor() > c.execute('select fname,lname,gyear from addrbk') > > The program freezes at the last (3rd) line. The same > code works fine if I run it from python shell > directly. > The code even works in mod_python if I query for less > than 3 column, e.g. > > c.execute('select fname,lname from addrbk') > or > c.execute('select lname, gyear from addrbk') > > Can anybody tell me what's going on? > > Thank you for your help, > Petros > > > > > > > > __________________________________ > Do you Yahoo!? > Find out what made the Top Yahoo! Searches of 2003 > http://search.yahoo.com/top2003 > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|