myqsldb warning problem

Bill Dandreta wjdandreta at
Fri Aug 9 02:56:58 CEST 2002

Here is the warning that I am getting:

_mysql_exceptions.Warning:   Records:   3073     Duplicates:   0
Warnings:  49

Here is the code that generates the warnings:

s='insert into  prices \
  comm4,comm5) values ' + ','.join(u)+';'
except header.MySQLdb.Error, e:
  print 'Cannot insert prices, see sysop'
  print "Error %d: %s" % (e.args[0], e.args[1])
  exit (1)

I spot checked the database but could find no errors. If I loop
through u and enter the records one at a time there are no warnings.

Is there a known issue with large strings used with the execute

I have a number of these to do and some are more than 10 times larger
than this one.

 Is there a way to find out precisely what is causing the warnings?


More information about the Python-list mailing list