Anonymous - 2003-06-03

Hi I try to send command to a db on a distant machine and this fail. Can anybody help me ?
Thanks

Philippe

This is my code and the error message:

>>> con = MySQLdb.Connect(host='dbhost',user='user',passwd='pass',db='MAP_NT_V31')

>>> res=con.cursor().execute('insert into villes values(0,"test");')

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.2/site-packages/MySQLdb/cursors.py", line 95, in execute
    return self._execute(query, args)
  File "/usr/local/lib/python2.2/site-packages/MySQLdb/cursors.py", line 114, in _execute
    self.errorhandler(self, exc, value)
  File "/usr/local/lib/python2.2/site-packages/MySQLdb/connections.py", line 33, in defaulterrorhandler
    raise errorclass, errorvalue
IndexError: list index out of range