Thanks, that worked. I made this change to gluons/tools.py until I captured the error.
def insert(self, **fields): query = self._insert(**fields) self._db['_lastsql'] = query * logging.error('insert:\n%s'%query) ... On Apr 1, 12:55 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > The last sql statement is in db._lastsql so you can do a try catch and > print (or log) the value of that variable on error. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.