> vals = ', '.join(["(%s,%d)" % (web.db.sqlquote(o), fldid) for o in opts])
So you can't use sqlquote with %s.
> web.query('INSERT INTO t(val, fldid) VALUES %s' % vals, _test=True)
A better way to do this is:
web.insert('t', val=o, fldid=fldid)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---