Recently i have had problems with a select-query (just any select query). Insert querty's go fine. About a week ago the select's went fine to.
I get this error msg:
> python bajs.py
Traceback (most recent call last):
File "bajs.py", line 7, in ?
result=moj.sql_generic(query)
File "/home/lighttpd/html/minsida/classer.py", line 15, in sql_generic
self.cursor.execute(query)
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 163, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.InterfaceError: (0, '')
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
Recently i have had problems with a select-query (just any select query). Insert querty's go fine. About a week ago the select's went fine to.
I get this error msg:
> python bajs.py
Traceback (most recent call last):
File "bajs.py", line 7, in ?
result=moj.sql_generic(query)
File "/home/lighttpd/html/minsida/classer.py", line 15, in sql_generic
self.cursor.execute(query)
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 163, in execute
self.errorhandler(self, exc, value)
File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.InterfaceError: (0, '')
A recompile fixed it
Are you using the default cursor class?
I have this as well, using the default cursor after an update to 1.2.1 on gentoo ~x86. MySQL 5.0.24