zzzeek/sqlalchemy — pull request #149 by pbu88 (2014-11-06 20:20:21+00:00)
Title: Small improvement on FlushError can't update error message

Output in the error message the table name and the column name.

The same error message improvement that in the previous PR. I noticed that whatever path the code takes inside the loop, `pk_params[col._label]` is always assign so it's safe to move the `if` statement inside the loop checking for this key's value in the dictionary.