liquibase/liquibase — pull request #306 by SteveDonie (2014-08-29 15:18:58+00:00)
Title: Use ReflectionToStringBuilder to implement toString on all SQL Statements

.. so that when exceptions happen the user gets decent feedback.

This way, when some SQL exception happens rather than a stack trace that looks like this:

liquibase.exception.RollbackFailedException: liquibase.exception.RollbackFailedException: Error executing custom SQL [liquibase.statement.core.DeleteStatement@509d1fe1]

We will instad get more details on the statement, like this:

liquibase.exception.RollbackFailedException: liquibase.exception.RollbackFailedException: Error executing custom SQL [liquibase.statement.core.DeleteStatement@509d1fe1 catalogName=null schemaName=null tableName="someTable"]