class ActiveRecord::WrappedDatabaseException

StatementInvalid wraps the original exception now.
Defunct wrapper class kept for compatibility.